16 releases (stable)

new 22.0.0-rc.3 Oct 22, 2024
21.2.2 Oct 24, 2024
21.2.0 Jul 16, 2024
20.3.0 Mar 15, 2024
0.0.1 Jan 10, 2024

#315 in Magic Beans

Download history 36/week @ 2024-07-04 204/week @ 2024-07-11 94/week @ 2024-07-18 128/week @ 2024-07-25 74/week @ 2024-08-01 96/week @ 2024-08-08 229/week @ 2024-08-15 86/week @ 2024-08-22 35/week @ 2024-08-29 30/week @ 2024-09-05 76/week @ 2024-09-12 32/week @ 2024-09-19 223/week @ 2024-09-26 303/week @ 2024-10-03 125/week @ 2024-10-10 113/week @ 2024-10-17

770 downloads per month

Apache-2.0

2MB
45K SLoC

rs-soroban-env

Rust contract-environment interface and (optional) host implementation for Soroban.

The soroban-env-common crate contains elements of the shared environment-interface between smart contract guest and host: the Env trait that defines the set of available environment functions as well as the Val type that can pass back and forth through the WASM calling convention. Additionally small wrappers around subtypes of Val are included: Object, Symbol, Error, etc.

The soroban-env-guest crate contains the guest-side stub implementation of the environment interface called Guest dependent on extern fns provided by the host implementation. This can be used in a WASM runtime that provides the extern fns.

The soroban-env-host crate contains the host-side full implementation of the environment interface called Host. This can be used either in the real blockchain host, or for local testing in the SDK.

Dependencies

~23MB
~457K SLoC