ruabmbua / hidapi-rs

Rust bindings for the hidapi C library
MIT License
177 stars 82 forks source link

Fix freebsd build #114

Closed ruabmbua closed 1 year ago

ruabmbua commented 1 year ago

Fixes https://github.com/ruabmbua/hidapi-rs/issues/113

libusb version of freebsd is too old and does not support libusb_set_option().

mcuee commented 1 year ago

FYI FreeBSD has its own version of libusb as part of the base system. https://github.com/freebsd/freebsd-src/tree/main/lib/libusb

mcuee commented 1 year ago

@hselasky

Not so sure if you want to add libusb_set_option() for FreeBSD. It is a tricky function and so far the usage does not really affect FreeBSD.

hselasky commented 1 year ago

Hi @mcuee:

Only if this function provides new functionality needed for FreeBSD.

Right now it will just be a stub? Are you OK with that?

--HPS

mcuee commented 1 year ago

@hselasky

Yes that is perfectly fine to me.