whatcable 0.3.0

Tells you what each USB cable / device on Linux can actually do. Rust port of WhatCable.
Documentation
# 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 = "whatcable"
version = "0.3.0"
authors = ["Andreas Brauchli"]
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]
cli = [
    "dep:serde_json",
    "dep:clap",
    "sysfs",
]
default = [
    "cli",
    "sysfs",
    "watch",
]
sysfs = []
watch = [
    "dep:udev",
    "dep:libc",
    "sysfs",
]

[lib]
name = "whatcable"
path = "src/lib.rs"

[[bin]]
name = "whatcable"
path = "src/main.rs"
required-features = ["cli"]

[[example]]
name = "cable_info"
path = "examples/cable_info.rs"

[[example]]
name = "decode_cable_vdo"
path = "examples/decode_cable_vdo.rs"

[[example]]
name = "list_devices"
path = "examples/list_devices.rs"
required-features = ["sysfs"]

[[example]]
name = "print_changes"
path = "examples/print_changes.rs"
required-features = ["watch"]

[[example]]
name = "snapshot_diff"
path = "examples/snapshot_diff.rs"
required-features = ["sysfs"]

[[test]]
name = "cli_smoke"
path = "tests/cli_smoke.rs"

[[test]]
name = "fixture_builder"
path = "tests/fixture_builder.rs"

[[test]]
name = "typec_pd_scenarios"
path = "tests/typec_pd_scenarios.rs"

[[test]]
name = "usb_enumeration"
path = "tests/usb_enumeration.rs"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.udev]
version = "0.9"
optional = true

[dev-dependencies.serde_json]
version = "1"

[lints.rust]
missing_docs = "warn"

[profile.release]
lto = "thin"
codegen-units = 1
strip = true