ruabmbua / hidapi-rs

Rust bindings for the hidapi C library
MIT License
172 stars 81 forks source link

Allow HidDevice to be sent across threads #44

Closed mon closed 5 years ago

mon commented 5 years ago

As far as I can tell this is safe (despite the empty unsafe impl for Send), since it's still using the lock to control API access.

This provides a really nice usability boost for me as I can integrate hidapi with rocket for making web interfaces for devices.