# 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 = "cyme" version = "1.7.0" authors = ["John Whittington "] exclude = [".github"] description = "List system USB buses and devices; a modern cross-platform `lsusb`" readme = "README.md" keywords = [ "usb", "lsusb", "system_profiler", "macos", "libusb", ] categories = ["command-line-utilities"] license = "GPL-3.0-or-later" repository = "https://github.com/tuna-f1sh/cyme" [package.metadata.cross.target.aarch64-unknown-linux-gnu] pre-build = ["dpkg --add-architecture arm64 && apt-get update && apt-get install --assume-yes libusb-1.0-0-dev:arm64 libudev-dev:arm64"] [package.metadata.cross.target.arm-unknown-linux-gnueabihf] pre-build = ["dpkg --add-architecture armhf && apt-get update && apt-get install --assume-yes libusb-1.0-0-dev:armhf libudev-dev:armhf"] [package.metadata.cross.target.i686-unknown-linux-gnu] pre-build = ["dpkg --add-architecture i386 && apt-get update && apt-get install --assume-yes libusb-1.0-0-dev:i386 libudev-dev:i386"] [package.metadata.cross.target.x86_64-unknown-linux-gnu] pre-build = ["apt-get update && apt-get install --assume-yes libusb-1.0-0-dev libudev-dev"] [package.metadata.deb] section = "utility" [profile.release] lto = true codegen-units = 1 panic = "abort" strip = true [[bin]] name = "cyme" path = "src/main.rs" [dependencies.clap] version = "4.0.22" features = [ "derive", "wrap_help", ] [dependencies.clap_complete] version = "4.0.6" optional = true [dependencies.clap_mangen] version = "0.2.5" optional = true [dependencies.colored] version = "2.0.0" [dependencies.dirs] version = "4.0.0" [dependencies.heck] version = "0.4.0" [dependencies.itertools] version = "0.10.5" [dependencies.lazy_static] version = "1.4.0" [dependencies.log] version = "0.4.17" [dependencies.rand] version = "0.8.5" [dependencies.rusb] version = "0.9.4" optional = true [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0.87" [dependencies.serde_with] version = "2.0.1" [dependencies.simple_logger] version = "4.0.0" [dependencies.strum] version = "0.24.1" [dependencies.strum_macros] version = "0.24.3" [dependencies.terminal_size] version = "0.2.5" [dependencies.usb-ids] version = "1" [dev-dependencies.assert-json-diff] version = "2.0.2" [dev-dependencies.diff] version = "0.1" [features] cli_generate = [ "dep:clap_complete", "dep:clap_mangen", ] default = [ "libusb", "udev", ] libusb = ["dep:rusb"] udev = [ "libusb", "dep:udevrs", ] udev_hwdb = [ "libusb", "udevlib?/hwdb", ] udevlib = [ "libusb", "dep:udevlib", ] usb_test = [] [target.aarch64-unknown-linux-gnu.dependencies.rusb] version = "0.9.4" [target.aarch64-unknown-linux-gnu.dependencies.udevlib] version = "^0.8.0" optional = true package = "udev" [target.aarch64-unknown-linux-gnu.dependencies.udevrs] version = "^0.3.0" optional = true [target.arm-unknown-linux-gnueabihf.dependencies.rusb] version = "0.9.4" [target.arm-unknown-linux-gnueabihf.dependencies.udevlib] version = "^0.8.0" optional = true package = "udev" [target.arm-unknown-linux-gnueabihf.dependencies.udevrs] version = "^0.3.0" optional = true [target.x86_64-unknown-linux-gnu.dependencies.rusb] version = "0.9.4" [target.x86_64-unknown-linux-gnu.dependencies.udevlib] version = "^0.8.0" optional = true package = "udev" [target.x86_64-unknown-linux-gnu.dependencies.udevrs] version = "^0.3.0" optional = true