Closed ShayBox closed 1 year ago
Can you provide an example? I can not really reproduce the issue.
I just added hidapi to my project with Linux-native enabled, there's no code yet. It's just failing to compile
Edit:
I am compiling on Windows
can't find crate for 'nix'
https://github.com/ruabmbua/hidapi-rs/blob/master/Cargo.toml#L35-L37
https://github.com/ruabmbua/hidapi-rs/blob/master/src/lib.rs#L61
This needs to be behind both a target_os and linux-native flag
the name 'HidApiBackend' is defined multiple times
https://github.com/ruabmbua/hidapi-rs/blob/master/src/lib.rs#L94-L97
This needs to disable the original export when enabling the new export, but also this needs to be behind a target os flag because I'm on Windows not Linux
A thx, I am actually aware of this, forgot to cherry pick it from the current native windows implementation branch. I will do itsometime today.
Enabling the
linux-native
feature whether or not I also disable default features causes the following errors