| Crates.io | usb-compat-01-sys |
| lib.rs | usb-compat-01-sys |
| version | 0.2.6 |
| created_at | 2021-04-24 13:45:27.434495+00 |
| updated_at | 2024-10-01 21:47:26.444263+00 |
| description | Rust bindings for libusb-compat-0.1 |
| homepage | |
| repository | https://github.com/alexrsagen/rs-usb-compat-01-sys |
| max_upload_size | |
| id | 388978 |
| size | 141,477 |
Warning: If you just need to use libusb, you might be better off with any other libusb crate.
This crate exists mainly to provide linkage to libusb-compat-0.1, which is useful for creating Rust bindings to projects which utilize libusb 0.1.
In summary, it provides:
libusb-compat-0.1, generated by bindgenlibusb/usb.h header, compile native code that depends on libusb-compat-0.1 or link to it in Rust code.libusb-compat-0.1 (with build tweaks for x86_64-pc-windows-msvc), which means you don't have to separately install libusb-compat-0.1 to use this crate.Add usb-compat-01-sys as a dependency in your project's Cargo.toml file:
[dependencies]
usb-compat-01-sys = "0.2"
Import the usb_compat_01_sys crate in your project, then you can use all functions starting with usb_ from libusb-compat-0.1.
See the libusb-compat-0.1 wiki or libusb-compat-0.1 examples for information on how to use it. The API is the same, as this is just a binding.