{"id":16116784,"url":"https://github.com/sawchord/usbip-device","last_synced_at":"2025-07-19T13:38:03.128Z","repository":{"id":57671286,"uuid":"329734196","full_name":"Sawchord/usbip-device","owner":"Sawchord","description":"Implementation of the UsbBus trait of usb-device, which simulates a Bus as a USBIP Server. Useful for developing UsbClass traits and simulating devices.","archived":false,"fork":false,"pushed_at":"2023-11-15T15:47:50.000Z","size":168,"stargazers_count":17,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-02T01:41:12.261Z","etag":null,"topics":["rust","usb","usb-device","usbip"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sawchord.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-14T21:05:25.000Z","updated_at":"2025-06-26T17:00:25.000Z","dependencies_parsed_at":"2024-10-27T16:08:13.237Z","dependency_job_id":"537fef22-0421-4e50-8008-9c70c859b85c","html_url":"https://github.com/Sawchord/usbip-device","commit_stats":{"total_commits":73,"total_committers":2,"mean_commits":36.5,"dds":"0.013698630136986356","last_synced_commit":"cc91cbd9c3f93425b998d2d57cfb5b6a8c98c1ea"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Sawchord/usbip-device","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sawchord%2Fusbip-device","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sawchord%2Fusbip-device/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sawchord%2Fusbip-device/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sawchord%2Fusbip-device/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sawchord","download_url":"https://codeload.github.com/Sawchord/usbip-device/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sawchord%2Fusbip-device/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265942582,"owners_count":23853294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust","usb","usb-device","usbip"],"created_at":"2024-10-09T20:25:58.646Z","updated_at":"2025-07-19T13:38:03.088Z","avatar_url":"https://github.com/Sawchord.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[1]: https://docs.rs/usb-device/0.2.7/usb_device/\n[3]: https://docs.rs/usb-device/0.2.7/usb_device/class/trait.UsbClass.html\n[4]: https://docs.rs/usb-device/0.2.7/usb_device/bus/trait.UsbBus.html\n\n[doc-badge]: https://docs.rs/usbip-device/badge.svg\n[doc-link]: https://docs.rs/usbip-device\n\n[crates-badge]: https://img.shields.io/crates/v/usbip-device\n[crates-link]: https://crates.io/crates/usbip-device\n\n[apache2-license]: https://spdx.org/licenses/Apache-2.0.html\n[mit-license]: https://spdx.org/licenses/MIT.htm\n\n# Usb-Hid Driver\n\n[![crates.io][crates-badge]][crates-link]\n[![Documentation][doc-badge]][doc-link]\n\nThis is an implementation of the [`UsbBus`][4] trait of [`usb-device`][1], simulating a USB device as a USBIP server.\n\n## Note\n\nThis crate is **not** intended to be used in production ever.\nIt's purpose is to ease development of new [`UsbClass`][3] implementation or to emulate USB devices for easier embedded application development.\n\n## Usage\n\nThe usbip client can be stared in the following way:\n\n```bash\nsudo apt-get install linux-tools-generic\n```\n\nThen, start the application.\n\n```bash\ncargo run --example serial_echo\n```\n\nand then start the USBIP client.\n\n```bash\n// Start the vhci driver\nsudo modprobe vhci-hcd\n\n// List available devices\nusbip list -r \"localhost\" \n\n// Attach USB device\nusbip attach -r \"localhost\" -b \"1-1\"\n\n// List connected devices\nusbip port\n\n// Detach device\nusbip detach -p \"port\"\n```\n\nDepending on you machine setup, you might need do `sudo`.\n\n## Known Bugs\n\nThis is a very alpha software, which still has a lot of quirks to be worked out.\n\n- When using HID, the connection always fails the first time and usually works the second time. It is not entirely clear, why.\n\n## License\n\n[Apache-2.0][apache2-license] or [MIT][mit-license].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsawchord%2Fusbip-device","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsawchord%2Fusbip-device","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsawchord%2Fusbip-device/lists"}