soroban_wasmi_core/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2#![warn(clippy::cast_lossless)]
3
4mod host_error;
5mod nan_preserving_float;
6mod trap;
7mod untyped;
8mod value;
9
10#[cfg(not(feature = "std"))]
11extern crate alloc;
12
13#[cfg(feature = "std")]
14extern crate std as alloc;
15
16/// WebAssembly-specific sizes and units.
17pub mod memory_units {
18    pub use memory_units::{size_of, wasm32::*, ByteSize, Bytes, RoundUpTo};
19}
20
21pub use self::{
22    host_error::HostError,
23    nan_preserving_float::{F32, F64},
24    trap::{Trap, TrapCode},
25    untyped::{DecodeUntypedSlice, EncodeUntypedSlice, UntypedError, UntypedValue},
26    value::{
27        ArithmeticOps,
28        ExtendInto,
29        Float,
30        FromValue,
31        Integer,
32        LittleEndianConvert,
33        SignExtendFrom,
34        TransmuteInto,
35        TruncateSaturateInto,
36        TryTruncateInto,
37        Value,
38        ValueType,
39        WrapInto,
40    },
41};