9 stable releases

21.1.2 Jun 24, 2024
21.1.0 May 31, 2024
21.0.1 Apr 23, 2024
20.3.0 Mar 15, 2024
0.0.1 Jan 10, 2024

#464 in Magic Beans

Download history 155/week @ 2024-03-12 142/week @ 2024-03-19 72/week @ 2024-03-26 393/week @ 2024-04-02 199/week @ 2024-04-09 949/week @ 2024-04-16 517/week @ 2024-04-23 333/week @ 2024-04-30 545/week @ 2024-05-07 774/week @ 2024-05-14 50/week @ 2024-05-21 370/week @ 2024-05-28 171/week @ 2024-06-04 1134/week @ 2024-06-11 603/week @ 2024-06-18 233/week @ 2024-06-25

2,299 downloads per month

Apache-2.0

2MB
40K 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

~20MB
~402K SLoC