From 8854754ec60db010af3d6602cdc32327416c94c5 Mon Sep 17 00:00:00 2001 From: Julius Rakow Date: Sun, 26 Aug 2018 15:06:09 +0200 Subject: [PATCH] add note about no_std panics of libm to readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 533bcbe..a8c48fa 100644 --- a/README.md +++ b/README.md @@ -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