I am following the example here: https://rust-lang.github.io/rust-bindgen/tutorial-4.html for using bindgen and I've included some bindings in the lib.rs file like so:
The project I'm trying to incorporate this bindings code into does not allow missing doc or unstable features:
and I am running into a problem where the included code is not documented in a way that rust accepts. As a result, I am hitting this error when I compile:
error: missing documentation for a struct field
I can stop the error by removing the deny(missing_docs) attribute, but removing the attribute is not acceptable as a solution. I tried to put an #allow(missing_docs) outer attribute before the include macro but this did not help:
I was hoping I could do something in the spirt of C to set scope like this:
But this is not valid syntax and I don't know how to do something of this spirt with rust. Any suggestions?