57 releases (26 breaking)

new 0.26.1-rc.2 Nov 14, 2024
0.26.1-rc.0 Oct 22, 2024
0.22.0 Jul 3, 2024
0.18.0 Mar 27, 2024
0.0.0 Oct 3, 2022

#279 in Magic Beans

Download history 127/week @ 2024-07-29 9/week @ 2024-08-05 24/week @ 2024-08-12 18/week @ 2024-08-19 1/week @ 2024-08-26 151/week @ 2024-09-02 26/week @ 2024-09-09 62/week @ 2024-09-16 144/week @ 2024-09-23 245/week @ 2024-09-30 175/week @ 2024-10-07 516/week @ 2024-10-14 411/week @ 2024-10-21 42/week @ 2024-10-28 71/week @ 2024-11-04 260/week @ 2024-11-11

814 downloads per month
Used in rusk-abi

MPL-2.0 license

240KB
5.5K SLoC

π-crust

Repository Build Status Documentation

WASM virtual machine for running Dusk's smart contracts.

Usage

use piecrust::VM;
let mut vm = VM::ephemeral().unwrap();

let bytecode = /*load bytecode*/;

let mut session = vm.session(SessionData::builder())?;
let contract_id = session.deploy(bytecode).unwrap();

let result = session.call::<i16, i32>(contract_id, "function_name", &0x11)?;

// use result

Build and Test

To build and test the crate one will need a Rust toolchain, Make, and the wasm-tools binary.

sudo apt install -y make # ubuntu/debian - adapt to own system
cargo install wasm-tools
make test

Release History

To see the release history for this crate, please see the CHANGELOG file.

License

This code is licensed under the Mozilla Public License Version 2.0 (MPL-2.0). Please see the LICENSE for further details.

Contribute

If you want to contribute to this project, please check the CONTRIBUTING file.

Dependencies

~26–36MB
~660K SLoC