I have generated an ffi-module from a C header file. Now I am writing a crate that makes use of this C-lib. Unfortunately the rust linter is burying error messages under a bunch of dead code and camel case warnings, so that it is sometimes tedious to spot the real error.
I tried to #[allow(dead_code)] at the top of the ffi generated file, but the warnings remain. Same for the camel case ones.
so I have the same problem but, the generated code is going to ... get regenerated.
how I do insert the ```
#![allow(dead_cose)]
at the top of the file after it's been generated.
I should shove it in with build.rs but that's a bit heavyhanded.
is there a way to do it in the module that refers to it?
I tried this:
mod bindings
{
#![allow(dead_code)]
}
but that just made it look like the actual definition.
ideas? Thanks.