Skip to main content

rustscript_embedded/
lib.rs

1#![cfg_attr(not(feature = "host"), no_std)]
2
3extern crate alloc;
4
5#[cfg(all(
6    any(feature = "arduino", feature = "esp32c3", feature = "esp32s31"),
7    not(feature = "host")
8))]
9mod allocator;
10#[cfg(any(feature = "arduino", feature = "esp32c3", feature = "esp32s31"))]
11mod ffi;
12#[cfg(feature = "host")]
13mod host;
14
15#[cfg(any(feature = "arduino", feature = "esp32c3", feature = "esp32s31"))]
16pub use ffi::{
17    RustScriptHostCallback, RustScriptValue, RustScriptValueError, RustScriptValueTag,
18    rustscript_run_vmbc,
19};
20#[cfg(feature = "host")]
21pub use host::*;