2020-05-16 15:34:21 +08:00
2020-05-16 11:23:27 +08:00
2020-05-16 15:34:21 +08:00
2020-05-16 15:34:21 +08:00
2020-05-15 21:18:28 +08:00
2020-05-16 15:34:21 +08:00
2020-05-16 11:19:04 +08:00
2020-05-16 12:42:23 +08:00

usbip

A Rust library to run a USB/IP server to simulate USB devices.

Coverage Status

How to use

See examples directory. Two examples are provided:

  1. hid_keyboard.rs: simulate a hid keyboard that types something every second.
  2. cdc_acm_serial.rs : simulate a serial that gets a character every second.

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.

API

See code comments. Not finalized yet, so get prepared for api breaking changes.

Description
A Rust library to run a USB/IP server
Readme MIT 512 KiB
Languages
Rust 82.9%
Shell 17.1%