WASM contracts standard library for Rust
Clone or download
Robbepop and NikVolf Update to 0.13 (#80)
* Bump rust-toolchain to nightly-2018-11-12

* Bump fixed-hash and uint dependencies

No longer use their beta versions.
- fixed-hash 0.3.0
- uint 0.5.0

* Bump version to 0.13.0

* Update README to use version 0.13
Latest commit 37397b7 Nov 12, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
alloc fix build and update rust-toolchain to nightly-2018-06-28 Jul 3, 2018
demo Update to fixed-hash 0.3.0-beta and unit 0.5.0-beta (#78) Nov 7, 2018
libc libc bump version Feb 12, 2018
src Revert to Address as an alias for H160 Nov 8, 2018
.editorconfig Add .editorconfig Nov 1, 2017
.gitignore initial Aug 9, 2017
.travis.yml update secret in travis Nov 9, 2018
Cargo.toml Update to 0.13 (#80) Nov 12, 2018
README.md Update to 0.13 (#80) Nov 12, 2018
rust-toolchain Update to 0.13 (#80) Nov 12, 2018



Parity WASM contracts standard library for Rust

Build Status


pwasm-std is a limited subset of the Rust standard library, along with a custom allocator which delegates the allocation to the runtime-defined externs.


Just add a dependency

pwasm-std = "0.13"

Test pwasm-std with

cargo test --features=test

The crate is supposed to be used on nightly Rust only, until the custom allocator api stablizes in Rust.


pwasm-std is itself compiled with no_std and expected to be used within no_std-crates/binaries, since it defines lang_item-s on it's own, which will conflict with standard library.

But for test scenarios it can be compiled with feature "std" and auxiliary crate "pwasm-test" to support testing of contracts' internal logic.


pwasm-std is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), at your choice.

See LICENSE-APACHE, and LICENSE-MIT for details.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in pwasm-std by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.