Cargo Features

[dependencies]
wasmut-wasm = { version = "0.46.0", default-features = false, features = ["std", "reduced-stack-buffer", "offsets", "atomics", "simd", "sign_ext", "bulk", "multi_value"] }
default = std

The std feature is set by default whenever wasmut-wasm is added without default-features = false somewhere in the dependency tree.

std default

Affects elements::deserialize_file, elements::serialize_to_file

reduced-stack-buffer

Reduce stack usage for buffered read operations.
This feature is useful when integrating on resource constrained devices such as microcontroler where the stack size is fixed (stacks do not grow) and limited to a few (k)bytes.

offsets

Provide a way to query the (absolute) offsets of the code section and individual instructions.
This can be useful if you want to to work with DWARF debug information, for example when using the addr2line crate.
This is a separate feature because all deserialize functions then require something that is Read + Seek instead of only Read

Affects io::SeekFrom, io::Seek, io::ReadSeek, io::seek_impl

atomics

Features for enabling non-MVP proposals. These features should be tested as part of Travis CI build.

Atomics aka threading. https://github.com/webassembly/threads/

Affects ops::AtomicsInstruction, ops::opcodes.atomics, ops::MemArg

simd

SIMD https://github.com/WebAssembly/simd/

Affects ops::SimdInstruction, ops::opcodes.simd, ops::MemArg

sign_ext

Sign-extension operators https://github.com/WebAssembly/sign-extension-ops/

Affects ops::SignExtInstruction, ops::opcodes.sign_ext

bulk

Bulk-memory operators https://github.com/WebAssembly/bulk-memory-operations/

Affects ops::BulkInstruction, ops::opcodes.bulk

multi_value

Multi-value https://github.com/WebAssembly/multi-value/