wasmi_core/
lib.rs

1#![no_std]
2#![warn(
3    clippy::cast_lossless,
4    clippy::missing_errors_doc,
5    clippy::used_underscore_binding,
6    clippy::redundant_closure_for_method_calls,
7    clippy::type_repetition_in_bounds,
8    clippy::inconsistent_struct_constructor,
9    clippy::default_trait_access,
10    clippy::map_unwrap_or,
11    clippy::items_after_statements
12)]
13
14pub mod hint;
15mod host_error;
16mod nan_preserving_float;
17mod trap;
18mod units;
19mod untyped;
20mod value;
21
22#[cfg(not(feature = "std"))]
23extern crate alloc as std;
24
25#[cfg(feature = "std")]
26extern crate std;
27
28use self::value::{
29    ArithmeticOps,
30    ExtendInto,
31    Float,
32    Integer,
33    LittleEndianConvert,
34    SignExtendFrom,
35    TruncateSaturateInto,
36    TryTruncateInto,
37    WrapInto,
38};
39pub use self::{
40    host_error::HostError,
41    nan_preserving_float::{F32, F64},
42    trap::{Trap, TrapCode},
43    units::Pages,
44    untyped::{DecodeUntypedSlice, EncodeUntypedSlice, UntypedError, UntypedVal},
45    value::ValType,
46};