add note about no_std panics of libm to readme

This commit is contained in:
Julius Rakow 2018-08-26 15:06:09 +02:00
parent 0a0f8707c4
commit 8854754ec6
No known key found for this signature in database
GPG Key ID: 9AABD9B859435A93
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ parity-wasm = {
The `core` feature requires the `core` and `alloc` libraries and a nightly compiler.
Also, code related to `std::error` is disabled.
Floating point operations in `no_std` use [`libm`](https://crates.io/crates/libm), which sometimes panics in debug mode (https://github.com/japaric/libm/issues/4).
So make sure to either use release builds or avoid WASM with floating point operations, for example by using [`deny_floating_point`](https://docs.rs/wasmi/0.4.0/wasmi/struct.Module.html#method.deny_floating_point).
## Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted