usbip
A Rust library to run a USB/IP server to simulate USB devices.
How to use
See examples directory. Two examples are provided:
- hid_keyboard.rs: simulate a hid keyboard that types something every second.
- cdc_acm_serial.rs : simulate a serial that gets a character every second.
To run example, run:
Then, in a USB/IP client environment:
Then, you can inspect the simulated USB device behavior in both sides.
API
See code comments. Not finalized yet, so get prepared for api breaking changes.