# 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" rust-version = "1.74" name = "nusb" version = "0.1.12" authors = ["Kevin Mehall "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Cross-platform low-level access to USB devices in pure Rust" readme = "README.md" keywords = [ "usb", "hardware", ] categories = ["hardware-support"] license = "Apache-2.0 OR MIT" repository = "https://github.com/kevinmehall/nusb" [lib] name = "nusb" path = "src/lib.rs" [[example]] name = "blocking" path = "examples/blocking.rs" [[example]] name = "bulk" path = "examples/bulk.rs" [[example]] name = "control" path = "examples/control.rs" [[example]] name = "descriptors" path = "examples/descriptors.rs" [[example]] name = "detach" path = "examples/detach.rs" [[example]] name = "detach_claim" path = "examples/detach_claim.rs" [[example]] name = "hotplug" path = "examples/hotplug.rs" [[example]] name = "list" path = "examples/list.rs" [[example]] name = "string_descriptors" path = "examples/string_descriptors.rs" [dependencies.atomic-waker] version = "1.1.2" [dependencies.futures-core] version = "0.3.29" [dependencies.log] version = "0.4.20" [dependencies.once_cell] version = "1.18.0" [dependencies.slab] version = "0.4.9" [dev-dependencies.env_logger] version = "0.10.0" [dev-dependencies.futures-lite] version = "1.13.0" [target.'cfg(any(target_os="linux", target_os="android"))'.dependencies.libc] version = "0.2.155" [target.'cfg(any(target_os="linux", target_os="android"))'.dependencies.rustix] version = "0.38.17" features = [ "fs", "event", "net", ] [target.'cfg(target_os="macos")'.dependencies.core-foundation] version = "0.9.3" [target.'cfg(target_os="macos")'.dependencies.core-foundation-sys] version = "0.8.4" [target.'cfg(target_os="macos")'.dependencies.io-kit-sys] version = "0.4.0" [target.'cfg(target_os="windows")'.dependencies.windows-sys] version = "0.48.0" features = [ "Win32_Devices_Usb", "Win32_Devices_DeviceAndDriverInstallation", "Win32_Foundation", "Win32_Devices_Properties", "Win32_Storage_FileSystem", "Win32_Security", "Win32_System_IO", "Win32_System_Registry", "Win32_System_Com", ] [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(fuzzing)"]