This crate is on crates.io and can be
used by adding
hidapi to the dependencies in your project's
extern crate hidapi; let api = new.unwrap; // Print out information about all connected devices for device in api.device_list // Connect to device using its VID and PID let = ; let device = api.open.unwrap; // Read data from device let mut buf = ; let res = device.read.unwrap; println!; // Write data to device let buf = ; let res = device.write.unwrap; println!;
Available at docs.rs.