Files
qmk-host/Cargo.toml
T
rootiest 635a223fd5 feat: add -v/-vv verbosity flags and trace-level hex dumps
Add clap CLI argument parsing with three log-level controls:
  -q/--quiet  errors only
  (default)   info — connections and value changes
  -v          debug — every packet's cmd/src/flags logged on TX and RX
  -vv         trace — full 32-byte hex dump of every packet on the wire

RUST_LOG env var continues to work as a fine-grained override for any
of the above levels.

Also expand the TX log line to include src and flags fields to match
the RX line, making the two symmetric.
2026-04-10 14:56:12 -04:00

19 lines
610 B
TOML

[package]
name = "qmk-host"
version = "0.1.0"
edition = "2021"
description = "Host bridge for bi-directional Raw HID layer sync and host data delivery to QMK keyboards"
license = "GPL-3.0-or-later"
[[bin]]
name = "qmk-host"
path = "src/main.rs"
[dependencies]
hidapi = "2" # Cross-platform Raw HID access
anyhow = "1" # Ergonomic error handling
log = "0.4" # Logging facade
env_logger = "0.11" # Logger implementation (RUST_LOG env var)
ctrlc = "3" # Ctrl+C / SIGINT handler
clap = { version = "4", features = ["derive"] } # CLI argument parsing