11 stable releases

new 21.0.1 Apr 23, 2024
20.3.0 Mar 15, 2024
20.0.2 Dec 20, 2023
20.0.0-rc2 Sep 18, 2023
0.0.3 Jul 29, 2022

#47 in #soroban

Download history 340/week @ 2024-01-01 1000/week @ 2024-01-08 1644/week @ 2024-01-15 566/week @ 2024-01-22 566/week @ 2024-01-29 1623/week @ 2024-02-05 1444/week @ 2024-02-12 1403/week @ 2024-02-19 1993/week @ 2024-02-26 1219/week @ 2024-03-04 1591/week @ 2024-03-11 1659/week @ 2024-03-18 2154/week @ 2024-03-25 1841/week @ 2024-04-01 2494/week @ 2024-04-08 3064/week @ 2024-04-15

9,992 downloads per month
Used in 47 crates (2 directly)

Apache-2.0

88KB
2K 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

~6MB
~138K SLoC