rules_rust
rules_rust copied to clipboard
feat: Add `crate_features` attr to `rust_doc` rule
This PR adds the crate_features
attr to the rust_doc
rule, which allows you to specify what features should be enabled when building docs. Currently rust_doc
doesn't enable any features (as far as I can tell, not even default features) which makes it impossible to build docs when a feature isn't available on the platform you're currently running on.
Hey @illicitonion, any chance you could review this PR too? No rush though :)
P.S. I tried to assign a reviewer but I don't seem to be able to
Could we add a test please?
Great idea! I added a unit test, please let me know if there is a different test or an example I should add