Cargo features
| Feature | Default | Enables | Extra dependencies |
|---|---|---|---|
usb | ✓ | transport::Usb, Brick::usb_first, Brick::usb_all, Brick::boot_sam_ba | nusb |
tracing | ✓ | Telegram logging at TRACE level | tracing |
bluetooth | transport::Bluetooth, Brick::bluetooth (Linux only) | bluer, tokio; system: D-Bus, pkg-config | |
serial | transport::Serial, Brick::serial | serialport, blocking |
Always available, without features: the protocol layer, the low- and
high-level APIs, AnyTransport, and the mock transports (Simulator,
Script).
Turning off defaults gives a build with no system dependencies, for example for simulation-only tests or a custom transport:
[dependencies]
nxt-rs = { git = "https://forge.wvffle.net/wvffle/nxt-rs.git", default-features = false }