sliceslice-rs icon indicating copy to clipboard operation
sliceslice-rs copied to clipboard

Build docs.rs documentation with `doc_auto_cfg`

Open 00xc opened this issue 7 months ago • 0 comments

When building documentation for docs.rs, use the doc_auto_cfg feature to highlight which crate features are required for a given API. The feature is not used when building docs locally, as it requires the nightly toolchain (which docs.rs already uses).

You can check how the new docs will look by running:

RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --open

00xc avatar Jul 01 '24 08:07 00xc