73 releases
| 0.29.0-rc.3 | Dec 12, 2025 |
|---|---|
| 0.29.0-rc.2 | Jul 25, 2025 |
| 0.28.1 | Apr 16, 2025 |
| 0.28.0 | Mar 19, 2025 |
| 0.0.0 | Oct 3, 2022 |
#46 in #virtual-machine
30 downloads per month
Used in 4 crates
(2 directly)
340KB
7K
SLoC
π-crust
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
~31–47MB
~731K SLoC