-
Notifications
You must be signed in to change notification settings - Fork 94
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
Conversation
sergeyboyko0791
commented
Mar 26, 2021
- 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
I've tested this branch on an Android emulator. It works fine, and I think, these changes may be merged :) |
Please note I've changed the formatting of the log entries forwarding from the |
* Remove hardcoded uri * Handle errors instead of panic
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥