ewasm-rust-api
This project aims to give a low-level and a high-level binding to ewasm from Rust.
Usage
Add the dependency, as usual:
[]
= "0.10"
In your project, include the prelude:
use *;
Additionally there is support for some macros to make creating contracts easier:
extern crate ewasm_api;
use *;
ewasm_entry_point!;
Other modules are available as well, outside of the prelude. Refer to the documentation for more info.
ewasm-rust-api
builds with various feature sets:
default
: Builds withwee_alloc
as the global allocator and with the Rust standard library.qimalloc
: Builds with qimalloc as the global allocator.debug
: Exposes the debugging interface.experimental
: Exposes the experimental bignum system library API.
To enable specific features include the dependency as follows:
[]
= "0.10"
= false
= ["std", "qimalloc"]
Further documentation is available here.
Author(s)
Alex Beregszaszi, Jake Lang
License
Apache 2.0