Cargo Features

[dependencies]
wasmer-types = { version = "5.0.0", default-features = false, features = ["std", "core", "enable-serde", "artifact-size"] }
default = std

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

std default

Affects wasmer-types::lib.std

core

Affects wasmer-types::lib.std

enable-serde = serde, serde_bytes

Enables serde of indexmap and std of serde

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

artifact-size

Enables loupe

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serde enable-serde?
serde_bytes enable-serde?