Make sure frame examples compile for wasm (#5332)
* Make sure frame examples compile for wasm This makes sure that `frame-example` and `frame-example-offchain-worker` compile for wasm. This also fixes compilation for these crates. The offchain worker example doesn't use serde-json anymore as that is too heavy and breaks `no_std` compilation. * Apply suggestions from code review Co-Authored-By:Nikolay Volf <nikvolf@gmail.com> Co-authored-by:
Nikolay Volf <nikvolf@gmail.com>
Showing
- substrate/.gitlab-ci.yml 18 additions, 0 deletionssubstrate/.gitlab-ci.yml
- substrate/Cargo.lock 14 additions, 5 deletionssubstrate/Cargo.lock
- substrate/frame/example-offchain-worker/Cargo.toml 2 additions, 1 deletionsubstrate/frame/example-offchain-worker/Cargo.toml
- substrate/frame/example-offchain-worker/src/lib.rs 39 additions, 22 deletionssubstrate/frame/example-offchain-worker/src/lib.rs
- substrate/frame/example-offchain-worker/src/tests.rs 19 additions, 3 deletionssubstrate/frame/example-offchain-worker/src/tests.rs
- substrate/frame/example/Cargo.toml 1 addition, 1 deletionsubstrate/frame/example/Cargo.toml
Please register or sign in to comment