Crates.io | usbip |
lib.rs | usbip |
version | 0.7.1 |
source | src |
created_at | 2020-05-16 03:21:17.258021 |
updated_at | 2024-01-14 02:05:45.975299 |
description | A library to run USB/IP server |
homepage | |
repository | https://github.com/jiegec/usbip |
max_upload_size | |
id | 242239 |
size | 122,346 |
A Rust library to run a USB/IP server to simulate USB devices.
It also enables sharing devices from an OS supporting libusb(libusb claims that it supports Linux, macOS, Windows, OpenBSD/NetBSD, Haiku and Solaris) to another OS supporting USB/IP(Linux, Windows). Sharing an CCID SmartCard from macOS to Linux is tested by running gpg --card-status
.
See examples directory. Three examples are provided:
To run example, run:
$ env RUST_LOG=info cargo run --example hid_keyboard
Then, in a USB/IP client environment:
$ usbip list -r $remote_ip
$ usbip attach -r $remote_ip -b $bus_id
Then, you can inspect the simulated USB device behavior in both sides.
See code comments. Not finalized yet, so get prepared for api breaking changes.