# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "nxt" version = "0.2.1" authors = ["David Young "] description = "USB driver for communicating with the NXT brick" readme = "README.md" license = "MPL-2.0" repository = "https://github.com/bricks-rs/nxt" [[example]] name = "bluetooth" required-features = ["examples"] [[example]] name = "gamepad" required-features = ["examples"] [[example]] name = "gui" required-features = ["examples"] [dependencies.async-trait] version = "0.1" [dependencies.bluer] version = "0.16" features = [ "bluetoothd", "rfcomm", ] optional = true [dependencies.eframe] version = "0.24" optional = true [dependencies.futures] version = "0.3" [dependencies.gilrs] version = "0.10" optional = true [dependencies.num-derive] version = "0.4" [dependencies.num-traits] version = "0.2" [dependencies.rusb] version = "0.9" optional = true [dependencies.strum] version = "0.25" optional = true [dependencies.strum_macros] version = "0.25" optional = true [dependencies.thiserror] version = "1" [dependencies.tokio] version = "1" features = ["sync"] [dependencies.tracing] version = "0.1" [dependencies.tracing-subscriber] version = "0.3" optional = true [dev-dependencies.tokio] version = "1" features = [ "rt-multi-thread", "macros", ] [features] bluetooth = [ "dep:bluer", "tokio/rt", ] default = [ "usb", "bluetooth", ] examples = [ "strum", "dep:eframe", "dep:gilrs", "dep:tracing-subscriber", ] strum = [ "dep:strum", "dep:strum_macros", ] usb = ["dep:rusb"]