ruabmbua / hidapi-rs

Rust bindings for the hidapi C library
MIT License
167 stars 80 forks source link

Add `get_report_descriptor` #104

Closed maniwani closed 1 year ago

maniwani commented 1 year ago

hidapi recently added HID report descriptor parsing in https://github.com/libusb/hidapi/pull/451 for the (upcoming?) 0.14.0 version. Can it be made accessible here?

ruabmbua commented 1 year ago

I am going to wait for the official update of the C library, but when it eventually releases I will add the new function.

ruabmbua commented 1 year ago

You can use the branch https://github.com/ruabmbua/hidapi-rs/tree/hid-report-descriptor for now as a direct cargo git dependency. Tested it on linux ans seems to work.

maniwani commented 1 year ago

Thanks!

TheElectronWill commented 1 year ago

hidapi 0.14.0 has been released :tada:

ruabmbua commented 1 year ago

I will look into updating and then rebasing the hid-report-descriptor branch onto master. Although it probably has to wait until end of next week when I have time again and can access my workstation for testing on all the different platforms.