# 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 = "embassy-usb" version = "0.3.0" build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "Async USB device stack for embedded devices in Rust." documentation = "https://docs.embassy.dev/embassy-usb" readme = "README.md" keywords = [ "embedded", "async", "usb", "hal", "embedded-hal", ] categories = [ "embedded", "hardware-support", "no-std", "asynchronous", ] license = "MIT OR Apache-2.0" repository = "https://github.com/embassy-rs/embassy" [package.metadata.docs.rs] features = [ "defmt", "usbd-hid", ] [package.metadata.embassy_docs] features = [ "defmt", "usbd-hid", ] src_base = "https://github.com/embassy-rs/embassy/blob/embassy-usb-v$VERSION/embassy-usb/src/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb/src/" target = "thumbv7em-none-eabi" [lib] name = "embassy_usb" path = "src/lib.rs" [dependencies.defmt] version = "0.3" optional = true [dependencies.embassy-futures] version = "0.1.0" [dependencies.embassy-net-driver-channel] version = "0.3.0" [dependencies.embassy-sync] version = "0.6.0" [dependencies.embassy-usb-driver] version = "0.1.0" [dependencies.heapless] version = "0.8" [dependencies.log] version = "0.4.14" optional = true [dependencies.ssmarshal] version = "1.0" optional = true default-features = false [dependencies.usbd-hid] version = "0.8.1" optional = true [features] default = ["usbd-hid"] defmt = [ "dep:defmt", "embassy-usb-driver/defmt", ] max-handler-count-1 = [] max-handler-count-2 = [] max-handler-count-3 = [] max-handler-count-4 = [] max-handler-count-5 = [] max-handler-count-6 = [] max-handler-count-7 = [] max-handler-count-8 = [] max-interface-count-1 = [] max-interface-count-2 = [] max-interface-count-3 = [] max-interface-count-4 = [] max-interface-count-5 = [] max-interface-count-6 = [] max-interface-count-7 = [] max-interface-count-8 = [] usbd-hid = [ "dep:usbd-hid", "dep:ssmarshal", ]