Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mm2.1 wasm light wallet #881

Merged
merged 11 commits into from
Apr 6, 2021
Merged

Mm2.1 wasm light wallet #881

merged 11 commits into from
Apr 6, 2021

Conversation

sergeyboyko0791
Copy link

  • Implement and use the custom 'common::log::format_record' formatting of the log records instead of the built-in log4rs::encode::Encode to cut the file path
  • Refactor common::executor for wasm32
  • Separate mm2_lib into mm2_native_lib and mm2_wasm_lib
  • Implement the spawn_rpc function for wasm32

* Use `wasm_bindgen_futures::spawn_local` instead of custom runtime implementation
* Use `js_sys::Date::now` instead of defined in js `date_now`
* Use 'setTimeout' within Timer
* Separate mm2_lib into mm2_wasm_lib and mm2_native_lib
* Separate common::lib into common::{native_log, wasm_log}
* Add wasm_build suite
* Add the spawn_rpc wasm-only version
* Use 'format_record' within MmLogAppender instead of built-in log4rs::encode::Encode
* Change the 'common::for_tests::require_log_level' argument type
* Document the mm2_main, mm2_rpc
* Also fix the build.rs warning
@sergeyboyko0791
Copy link
Author

I've tested this branch on an Android emulator. It works fine, and I think, these changes may be merged :)

@sergeyboyko0791
Copy link
Author

Please note I've changed the formatting of the log entries forwarding from the log crate according to this comment

Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the great work! 🙂 I have only 1 question.

mm2src/mm2_lib/mm2_wasm_lib.rs Show resolved Hide resolved
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@artemii235 artemii235 merged commit 5933e5a into mm2.1 Apr 6, 2021
@artemii235 artemii235 deleted the mm2.1-wasm-light-wallet branch April 6, 2021 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants