docsrs-cfg 0.1.2

Quick use `doc_cfg` on docsrs
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented3 out of 3 items with examples
  • Size
  • Source code size: 7.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 255.15 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • A4-Tacks/docsrs-cfg-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • A4-Tacks

Quick use doc_cfg on docsrs

use docsrs_cfg::docsrs_cfg;
#[docsrs_cfg(feature = "std")]
fn foo() {}

Expand to:

#[cfg(any(docsrs, feature = "std"))]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
fn foo() {}