ruabmbua / hidapi-rs

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

Rebuild if the hidapi file changes #105

Closed carlosmn closed 1 year ago

carlosmn commented 1 year ago

It's a bit of an edge case but I find myself messing around with the C code and it's annoying that cargo doesn't know to recompile.

Though I expect it would also be useful if there's an update to the submodule and you're rebuilding.

ruabmbua commented 1 year ago

Hm, this should actually already work correctly, the cc library should already emit this cargo metadata... I had this issue myself recently, not sure why its not working any more.

ruabmbua commented 1 year ago

Actually, I think I am wrong... The library does not seem to detect file changes, only environment changes are automatically picked up.

ruabmbua commented 1 year ago

Thanks for the contribution!