Cargo Features

[dependencies]
wasm-embedded-rt = { version = "0.4.0", default-features = false, features = ["std", "rt", "rt-wasm3", "rt-wasmtime", "hal-linux", "hal-mock"] }
default = hal-linux, hal-mock, rt, rt-wasm3, rt-wasmtime

These default features are set whenever wasm-embedded-rt is added without default-features = false somewhere in the dependency tree.

std hal-linux hal-mock rt-wasmtime = anyhow, structopt, strum, strum_macros, thiserror

Enables std of log

rt default = simplelog, structopt, strum, strum_macros

Required by the binary

rt-wasm3 default = wasm-embedded-rt-wasm3

Enables bind_c of wasm-embedded-spec

embedded-wasm components

rt-wasmtime default = std, wasm-embedded-rt-wasmtime

Enables bind_rs of wasm-embedded-spec

hal-linux default = linux-embedded-hal, std

Affects wasm-embedded-rt::linux

hal-mock default = embedded-hal-mock, serde, serde_derive, std, toml

Affects wasm-embedded-rt::mock

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.

wasm-embedded-rt-wasmtime rt-wasmtime
wasm-embedded-rt-wasm3 rt-wasm3
thiserror std?

Enables thiserror ^1.0.30

error handling

anyhow std?
serde hal-mock

Enables serde

serialisation

serde_derive hal-mock
toml hal-mock

Enables toml ^0.5.8

structopt rt std?

Enables structopt

CLI / logging / argument parsing

strum rt std?

Enables strum ^0.21.0

strum_macros rt std?

Enables strum_macros ^0.21.1

simplelog rt

Enables simplelog ^0.10.0

embedded-hal-mock hal-mock

Enables embedded-hal-mock ^0.7.2

linux-embedded-hal hal-linux