cross_usb 0.2.0

A a Rust USB library which works seamlessly across both native and WASM targets
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Cross USB

An attempt at a USB library which works seamlessly across native and WASM targets.

[Crates.io](https://crates.io/crates/cross_usb)

[Documentation](https://docs.rs/cross_usb/)

------------------

> [!NOTE]  
> Web USB only works in Chromium based browsers for now.

## Dependencies

For native USB, the crate utilizies [nusb](https://github.com/kevinmehall/nusb), a pure rust library similar to the very popular libusb.

For WASM, this crate utilizes [web-sys](https://crates.io/crates/web-sys) which gives access to browser API calls, and in this case is used to interact with [WebUSB](https://developer.mozilla.org/en-US/docs/Web/API/WebUSB_API)