[package]
edition = "2021"
rust-version = "1.74"
name = "whatcable"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tells you what each USB cable/device on Linux can actually do. Rust port of WhatCable."
homepage = "https://github.com/Zetaphor/whatcable-linux"
readme = "README.md"
keywords = [
"usb",
"usb-c",
"power-delivery",
"sysfs",
"cli",
]
categories = [
"command-line-utilities",
"hardware-support",
"os::linux-apis",
]
license = "MIT"
repository = "https://github.com/Zetaphor/whatcable-linux"
[features]
default = ["watch"]
watch = ["dep:udev"]
[lib]
name = "whatcable"
path = "src/lib.rs"
[[bin]]
name = "whatcable-linux"
path = "src/main.rs"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.libc]
version = "0.2"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.udev]
version = "0.9"
optional = true
[profile.release]
lto = "thin"
codegen-units = 1
strip = true