From d08a08de5126e7fa6ad4c568f17f90b14604c801 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Wed, 19 Jun 2019 17:22:29 +0200 Subject: [PATCH] Update Readme --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 5368fdf..00d2ee5 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ git clone https://github.com/paritytech/wasmi.git --recursive cd wasmi cargo build cargo test +cargo test --features threadsafe ``` # `no_std` support @@ -39,6 +40,19 @@ 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). +# Thread-safe support + +This crate supports thread-safe environments. +Enable the `threadsafe` feature and Rust's thread-safe data structures will be used. +```toml +[dependencies] +parity-wasm = { + version = "0.31", + default-features = true, + features = "threadsafe" +} +``` + # License `wasmi` is primarily distributed under the terms of both the MIT