smoldot icon indicating copy to clipboard operation
smoldot copied to clipboard

Enforce no-std compatibility in CI

Open tomaka opened this issue 3 years ago • 3 comments

Close https://github.com/paritytech/smoldot/issues/106

This is not passing, but this PR can be used as a way to track progress.

tomaka avatar Dec 15 '21 17:12 tomaka

twiggy diff report

Difference in .wasm size before and after this pull request.


 Delta Bytes │ Item
─────────────┼──────────────────
          +0 ┊ Σ [0 Total Rows]

github-actions[bot] avatar Dec 15 '21 17:12 github-actions[bot]

Is it possible to compile smoldot for wasm32-unknown-unknown? Would be great to get that enforced in the CI too. I wanted to try and use it from a wgpu rendered bevy client on the browser but when I pull in the dep:

smoldot = { git= "https://github.com/paritytech/smoldot.git", default-features = false }

it grumbles about sql light which is odd as I told it no default features...

gilescope avatar Apr 18 '22 17:04 gilescope

wasm32-unknown-unknown has a std, so this is off topic. But yes, the smoldot and smoldot-light-base libraries compile for Wasm, that is checked by CI.

tomaka avatar Apr 18 '22 18:04 tomaka