Convert to cargo workspace with lib/ and cli/ crates. Add Nix flake for building and development. Extract handle_urb_loop and add read_urb_command to the library for CLI consumption. Implement the usbip-rs CLI binary with clap subcommands: - client listen: accept incoming connections via vhci_hcd sysfs - host connect: passthrough real USB devices via nusb - test_hid connect: export a simulated HID keyboard for testing Add vsock transport layer and vhci_hcd sysfs interaction module. Apply rustfmt formatting project-wide and add rustfmt/clippy to devShell. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
613 B
TOML
25 lines
613 B
TOML
[package]
|
|
name = "usbip-rs"
|
|
version = "0.8.0"
|
|
authors = ["Jiajie Chen <c@jia.je>"]
|
|
edition = "2024"
|
|
license = "MIT"
|
|
repository = "https://github.com/jiegec/usbip"
|
|
description = "A library to run USB/IP server"
|
|
|
|
[dependencies]
|
|
tokio = { version = "1.22.0", features = ["rt", "net", "io-util", "sync"] }
|
|
log = "0.4.17"
|
|
num-traits = "0.2.15"
|
|
num-derive = "0.4.2"
|
|
rusb = "0.9.3"
|
|
serde = { version = "1.0", features = ["derive"], optional = true }
|
|
nusb = "0.2.1"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1.22.0", features = ["full"] }
|
|
env_logger = "0.11.7"
|
|
|
|
[features]
|
|
default = []
|
|
serde = ["dep:serde", "rusb/serde"]
|