14 releases

20.0.0-rc2 Sep 18, 2023
0.0.17 Jun 27, 2023
0.0.15 Mar 22, 2023
0.0.11 Dec 8, 2022
0.0.9 Nov 3, 2022

#46 in #soroban

Download history 254/week @ 2023-12-13 166/week @ 2023-12-20 132/week @ 2023-12-27 112/week @ 2024-01-03 225/week @ 2024-01-10 148/week @ 2024-01-17 84/week @ 2024-01-24 134/week @ 2024-01-31 75/week @ 2024-02-07 96/week @ 2024-02-14 136/week @ 2024-02-21 259/week @ 2024-02-28 137/week @ 2024-03-06 152/week @ 2024-03-13 477/week @ 2024-03-20 167/week @ 2024-03-27

950 downloads per month

Apache-2.0

16KB
310 lines

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

~0.7–1.2MB
~26K SLoC