wasmi-labs / wasmi

WebAssembly (Wasm) interpreter.
https://wasmi-labs.github.io/wasmi/
Apache License 2.0
1.62k stars 287 forks source link

Adjust `no_std` usage in Wasmi workspace crates #1307

Closed Robbepop closed 6 days ago

Robbepop commented 6 days ago

Now all no_std enabled Wasmi workspace crates share the following no_std setup:

#[no_std]

extern crate alloc;
#[cfg(feature = "std")]
extern crate std;

Then use alloc instead of std where possible. The std feature is only used for code that is conditionally compiled to always use the std feature, e.g. in test code.

codecov[bot] commented 6 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.58%. Comparing base (2b1d912) to head (8cc9eec). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1307 +/- ## ======================================= Coverage 81.57% 81.58% ======================================= Files 306 306 Lines 25271 25271 ======================================= + Hits 20616 20617 +1 + Misses 4655 4654 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.