[package] name = "casper-wasmi-core" version = "0.3.0" edition = "2021" authors = ["Parity Technologies "] license = "MIT/Apache-2.0" readme = "../README.md" repository = "https://github.com/casper-network/casper-wasmi" documentation = "https://docs.rs/casper_wasmi_core/" description = "Core abstractions and primitives for the wasmi WebAssembly interpreter" keywords = ["wasm", "webassembly", "bytecode", "interpreter"] [dependencies] memory_units = "0.4.0" libm = "0.2.1" num-rational = { version = "0.4", default-features = false, features = ["num-bigint"] } num-traits = { version = "0.2.8", default-features = false } region = { version = "3.0", optional = true } downcast-rs = { version = "1.2", default-features = false } [dev-dependencies] rand = "0.8.2" [features] default = ["std"] # Use `no-default-features` for a `no_std` build. std = [ "num-rational/std", "num-rational/num-bigint-std", "num-traits/std", "downcast-rs/std", ] # Enables OS supported virtual memory. # # Note # # - This feature is only supported on 64-bit platforms. # For 32-bit platforms the linear memory will fallback to using the Vec # based implementation. # - The default is to fall back is an inefficient vector based implementation. # - By nature this feature requires `region` and the Rust standard library. virtual_memory = ["region", "std"]