# 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 = "rockusb" version = "0.2.0" authors = ["Sjoerd Simons "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Rockchip usb protocol host implementation" homepage = "https://github.com/collabora/rockchiprs" readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/collabora/rockchiprs" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "rockusb" path = "src/lib.rs" [[example]] name = "rockusb" path = "examples/rockusb.rs" required-features = ["libusb"] [[example]] name = "rockusb-nusb" path = "examples/rockusb-nusb.rs" required-features = ["nusb"] [dependencies.bytes] version = "1.4.0" [dependencies.crc] version = "3.0.1" [dependencies.fastrand] version = "2" [dependencies.futures] version = "0.3.31" optional = true [dependencies.num_enum] version = "0.7" [dependencies.nusb] version = "0.1.10" optional = true [dependencies.rusb] version = "0.9.4" optional = true [dependencies.thiserror] version = "1.0.38" [dev-dependencies.anyhow] version = "1.0.69" [dev-dependencies.async-compression] version = "0.4.5" features = [ "gzip", "futures-io", ] [dev-dependencies.bmap-parser] version = "0.2.0" [dev-dependencies.clap] version = "4.2" features = ["derive"] [dev-dependencies.clap-num] version = "1.0" [dev-dependencies.flate2] version = "1.0.25" [dev-dependencies.futures] version = "0.3.31" features = [ "compat", "io-compat", ] [dev-dependencies.nbd] version = "0.3" [dev-dependencies.rockfile] version = "0.1.2" [dev-dependencies.rusb] version = "0.9.1" [dev-dependencies.tokio] version = "1.40.0" features = ["full"] [dev-dependencies.tokio-util] version = "0.7.12" features = ["compat"] [features] libusb = ["dep:rusb"] nusb = [ "dep:nusb", "dep:futures", ]