Disable doc_tests for bindgen module


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: Support markdown in C++ doc comments. · Issue #800 · rust-lang/rust-bindgen · GitHub

It sounds like the only workarounds for now are to disable doctests for the crate, or to disable comment generation in bindgen.