# 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.73" name = "upc" version = "0.5.0" authors = ["Sebastian Urban "] autoexamples = false description = "USB packet channel (UPC): provides a reliable, packet-based transport over USB." readme = "README.md" keywords = [ "usb", "gadget", "packet", "channel", ] categories = [ "hardware-support", "asynchronous", ] license = "Apache-2.0" repository = "https://github.com/surban/upc" [package.metadata.docs.rs] all-features = true cargo-args = [ "-Zunstable-options", "-Zrustdoc-scrape-examples", ] rustdoc-args = [ "--cfg", "docsrs", ] [[example]] name = "host" doc-scrape-examples = true required-features = ["host"] [[example]] name = "device" doc-scrape-examples = true required-features = ["device"] [dependencies.bytes] version = "1.4" [dependencies.futures] version = "0.3" [dependencies.rusb] version = "0.9.3" optional = true [dependencies.tokio] version = "1.33" features = [ "macros", "rt", "sync", ] [dependencies.tracing] version = "0.1" [dependencies.usb-gadget] version = "0.7" features = ["tokio"] optional = true [dependencies.uuid] version = "1" [dev-dependencies.rand] version = "0.8" [dev-dependencies.rand_xoshiro] version = "0.6" [dev-dependencies.tokio] version = "1" features = ["time"] [dev-dependencies.tracing-log] version = "0.2" [dev-dependencies.tracing-subscriber] version = "0.3" features = [ "env-filter", "fmt", ] default-features = false [features] default = [] device = ["usb-gadget"] host = ["rusb"] trace-packets = []