30d3c9532e
feat: add usbip-rs CLI tool with vsock transport
...
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>
2026-03-22 10:41:42 +00:00
Jiajie Chen
0878920532
Release v0.8.0
2026-01-27 13:00:46 +08:00
Jiajie Chen
a19bfe8301
Simplify documentation ( fixes #59 )
...
Remove redundant sections from README and update LICENSE copyright year.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-12-25 20:58:48 +08:00
Jiajie Chen
c8cd214e1d
Fix clippy warning: cloned_ref_to_slice_refs
...
Replace &[device.clone()] with std::slice::from_ref(&device) in
test to address clippy::cloned_ref_to_slice_refs warning.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-12-25 20:52:45 +08:00
Jiajie Chen
48d0d9ca34
Fix bus num on non-Linux platform
2025-12-24 23:23:25 +08:00
Jiajie Chen
b83f584391
Handle upper case in hid keyboard report
2025-12-24 23:18:11 +08:00
Jiajie Chen
fdbb9574aa
Fix missing max packet size handling
2025-12-24 23:17:29 +08:00
Jiajie Chen
3ff5df5c2e
Migrate to nusb 0.2.1
2025-12-24 23:17:02 +08:00
Jiajie Chen
156ec45a81
Apply more cargo clippy
2025-08-01 16:38:47 +08:00
Jiajie Chen
e14858f918
Apply cargo clippy
2025-08-01 16:35:06 +08:00
Jiajie Chen
ad1537a0f8
Add more comments in descriptor handling
2025-08-01 16:05:33 +08:00
Jiajie Chen
664d9ee143
Run cargo fmt
2025-06-13 18:26:58 +08:00
Jiajie Chen
5d49acaa2e
Run clippy fix
2025-06-13 17:57:50 +08:00
Jiajie Chen
a584b3713d
Add stale bot
2025-06-13 17:17:59 +08:00
Jiajie Chen
c4f7a376b5
Drop broken coveralls
2025-03-24 14:15:43 +08:00
Jiajie Chen
276acbbb23
Format code
2025-03-24 14:10:35 +08:00
Jiajie Chen
bd7c558ee1
Fix clippy
2025-03-24 14:03:53 +08:00
Jiajie Chen
c622dd9763
Format code
2025-03-24 13:50:04 +08:00
Jiajie Chen
6fd28e9076
Bump dependencies
2025-03-24 13:47:39 +08:00
Jiajie Chen
22acc5b7e0
#[cfg] is required
2024-10-26 10:55:41 +08:00
Jiajie Chen
d03e34d9e4
Handle windows missing function for nusb
2024-10-26 10:53:14 +08:00
Jiajie Chen
5c00f965f9
Use nightly for coveralls
2024-10-26 10:49:05 +08:00
Jiajie Chen
0c00370aeb
Improve doc
2024-10-26 10:48:13 +08:00
Jiajie Chen
94d674942f
Add derive Debug, closing #17
2024-10-26 10:46:14 +08:00
Jiajie Chen
066aeb15dc
Use stable in ci
2024-10-26 10:40:24 +08:00
Jiajie Chen
0e896b2cf7
Expose nusb support
2024-10-26 10:38:09 +08:00
Jiajie Chen
9c1efa1dd3
Add initial nusb support for #54
2024-10-26 10:16:04 +08:00
Jiajie Chen
af17fc2243
Fix clippy warnings
2024-10-26 09:42:51 +08:00
Jiajie Chen
8f3a72730b
Expose new with raw device handles, closing pr #48
2024-10-26 09:42:44 +08:00
Jiajie Chen
7e3409d6d9
Add unset string fuctions
2024-10-26 09:35:32 +08:00
roblabla
458cc084c7
Allow not setting a string descriptor
2024-10-23 18:48:24 +02:00
Jiajie Chen
341bd0fe5e
Release v0.7.1
2024-01-14 10:05:23 +08:00
Chen
0b7c03acf8
Merge pull request #42 from h7x4/fix-string-pool-panic
...
Fix panic on request of invalid string pool index
2024-01-14 10:03:55 +08:00
Chen
28f4f7a85e
Merge pull request #43 from h7x4/fix-usbip-cmd-unlink-behaviour
...
Fix `USBIP_CMD_UNLINK` behaviour
2024-01-14 10:03:43 +08:00
h7x4
5730cb9e68
Fix USBIP_CMD_UNLINK behaviour
2024-01-13 22:23:11 +01:00
h7x4
8c0d86ca9d
fix panic on request of invalid string pool index
2024-01-13 22:08:04 +01:00
Jiajie Chen
450f784a6c
Release v0.7.0
2023-12-30 09:22:18 +08:00
Chen
8640fb425a
Merge pull request #37 from h7x4/fix-usbip-parser-error
...
usbip_protocol: fix parser bug on cmd_submit and ret_submit
2023-12-27 00:01:13 +08:00
h7x4
f75e1a05bc
usbip_protocol: fix parser bug on cmd_submit and ret_submit
2023-12-26 16:56:58 +01:00
h7x4
e14e34eae7
usbip_protocol: add more trace logs
2023-12-26 16:22:50 +01:00
Jiajie Chen
b5e0f7e63c
Format code
2023-12-20 10:09:47 +08:00
Jiajie Chen
612ec979d6
Merge branch '313ctric/master'
2023-12-20 09:57:15 +08:00
Electric
e968c27be5
Actually fix things
2023-12-19 17:32:58 +00:00
Chen
f9246c0f5e
Merge pull request #35 from h7x4/fixup-serde-impls
...
Fixup serde impls
2023-10-30 10:45:17 +08:00
h7x4
d890684f7d
Make setup.rs use statement conditional
2023-10-29 17:21:54 +01:00
h7x4
8872fea207
Add serde impls for usbip_protocol types
2023-10-29 17:21:19 +01:00
Chen
4316e61c21
Merge pull request #19 from h7x4/add-serde-impls
...
Add serde support
2023-10-30 00:11:46 +08:00
h7x4
e0542938e6
Add serde support
...
Add serde serialization/deserialization for most public types
2023-10-29 16:32:06 +01:00
h7x4
a1ecd1d65b
Cargo.toml: rusb 0.9.1 -> 0.9.3
2023-10-29 16:32:05 +01:00
Chen
a2701a76ee
Merge pull request #32 from h7x4/handle-rusb-device-descriptor-errors
...
Handle rusb device descriptor errors without panic
2023-10-29 22:29:26 +08:00