Registry / utility / doc-cfg

doc-cfg

JSON →
library0.1.0rscratesunverified

Provides the `#[doc_cfg(..)]` helper attribute to conditionally include documentation based on feature flags.

# Cargo.toml [dependencies] doc-cfg = "0.1.0"
INSTALL
IMPORT
SIG · DOC-CFG
D
doc-cfg
utilityrustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

doc_cfg
use doc_cfg::doc_cfg;

Applies a doc_cfg attribute to conditionally show documentation.

use doc_cfg::doc_cfg; #[doc_cfg(feature = "my_feature")] /// This item is only available with the `my_feature` feature. pub fn my_function() {} fn main() { println!("Documentation attribute applied"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
doc-cfg — cargo add doc-cfg · libregistry