greentic-interfaces 0.5.0

Greentic ABI: WIT contracts, generated bindings, thin mappers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(unsafe_code)]
#![allow(unused_imports)]
#![allow(clippy::unwrap_used, clippy::expect_used)]

/// Rust bindings generated from the Greentic WIT worlds.
/// The build script emits `GREENTIC_INTERFACES_BINDINGS` pointing inside `OUT_DIR`,
/// so the include is always target/profile-specific and cache-safe.
#[cfg(feature = "bindings-rust")]
pub mod generated {
    include!(concat!(env!("GREENTIC_INTERFACES_BINDINGS"), "/mod.rs"));
}

#[cfg(feature = "bindings-rust")]
pub use generated::*;