Remove manual --cfg docsrs
in Cargo.toml
metadata
#14132
Labels
A-Build-System
Related to build systems or continuous integration
C-Docs
An addition or correction to our documentation
C-Feature
A new feature, making something new possible
D-Trivial
Nice and easy! A great choice to get started with Bevy
What problem does this solve or what need does it fill?
At the bottom of every public crate is the following:
This allows code to check that it is building on docs.rs using
#[cfg(docsrs)]
. It's frequently used for nightly docs annotations, such as enabling auto-feature-documentation. The--cfg docsrs
section ofrustdoc-args
can be removed, since it is now passed to all crates instead of just the main one being built.What solution would you like?
Remove
--cfg docsrs
from theCargo.toml
, and re-evaluate if-Zunstable-options
is still necessary.Additional context
--cfg docsrs
to all rustdoc invocations rust-lang/docs.rs#2390The text was updated successfully, but these errors were encountered: