Cargo Features

[dependencies]
hal-sim = { version = "0.5.1", default-features = false, features = ["sim", "io", "ui"] }
default = io, ui

These default features are set whenever hal-sim is added without default-features = false somewhere in the dependency tree.

sim io = embedded-graphics-core, embedded-hal, embedded-hal-async, embedded-hal02, nb

Affects hal-sim::adc, hal-sim::display, hal-sim::gpio, hal-sim::peripherals

io default = channel-bridge, embassy-futures, embassy-sync, futures, sim

Affects hal-sim::io

ui default = gloo-net, gloo-timers, itertools, wasm-bindgen, wasm-bindgen-futures, wasm-logger, web-sys, yew, yewdux, yewdux-middleware

Enables wasm of channel-bridge

Affects hal-sim::ui

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.

nb sim?

Enables nb

sim

embedded-hal02 sim?

Enables embedded-hal ^0.2

embedded-hal sim?
embedded-hal-async sim?
embedded-graphics-core sim?
futures io

Enables futures

web

embassy-futures io
embassy-sync io

Enables embassy-sync ^0.5

channel-bridge io ui
yew ui

Enables yew

ui

yewdux ui
yewdux-middleware ui
wasm-logger ui
wasm-bindgen ui
wasm-bindgen-futures ui
web-sys ui
itertools ui

Enables itertools ^0.11

gloo-timers ui
gloo-net ui

Enables gloo-net ^0.4