Cargo Features

wasm-smith has no features set by default.

[dependencies]
wasm-smith = { version = "0.220.0", features = ["wasmparser", "component-model", "clap", "serde", "serde_derive", "wat"] }
wasmparser

Enables wasmparser, wasmparser of wasm-encoder

component-model

Enables component-model of wasm-encoder

wasm-encoder:

On-by-default: conditional support for emitting components in addition to core modules.

Features from optional dependencies

clap implicit feature

Enables clap

clap:

A simple to use, efficient, and full-featured Command Line Argument Parser

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

serde_derive implicit feature

Enables serde_derive

serde_derive:

Macros 1.1 implementation of #[derive(Serialize, Deserialize)]

wat implicit feature

Enables wat

wat:

Rust parser for the WebAssembly Text format, WAT