I have a large sys module being generated from a library. The included documentation is very useful! However it's breaking my test runs now as it trying to compile the documentation as code for some reason.
How can I direct cargo test to stop doing this?
Ok, for the moment using
doctest = false
will get things green again, but this is sort of annoying. I'd prefer to be able to disable doctests at the module level in this case.
There's an open bindgen issue related to this: https://github.com/rust-lang/rust-bindgen/issues/800
It sounds like the only workarounds for now are to disable doctests for the crate, or to disable comment generation in bindgen.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.