Closed EdJoPaTo closed 1 month ago
see https://doc.rust-lang.org/rustdoc/unstable-features.html#doc_auto_cfg-automatically-generate-doccfg
While other projects seem to --cfg docsrs in the Cargo.toml this is likely not required (anymore?) as its documented as the way to detect docs.rs
--cfg docsrs
Can be locally previewed:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --open
see https://doc.rust-lang.org/rustdoc/unstable-features.html#doc_auto_cfg-automatically-generate-doccfg
While other projects seem to
--cfg docsrs
in the Cargo.toml this is likely not required (anymore?) as its documented as the way to detect docs.rsCan be locally previewed: