soroban_env_guest/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![no_std]

//! This crate provides the [Guest] type, the "stub" implementation of the [Env]
//! interface used for communicating between a contract guest and its host. It
//! is only defined for `cfg(target_family = "wasm")`.
//!
//! It also re-exports all of the content of the [soroban_env_common] crate for
//! use by guest code. Most of the type and module definitions visible here are
//! actually defined in the common crate.

#[cfg(target_family = "wasm")]
mod guest;

#[cfg(target_family = "wasm")]
pub use guest::Guest;
pub use soroban_env_common::*;