| commit | 215b18b01e8b49369190760e75a6b7d4630105af | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Tue Aug 27 23:12:07 2024 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Tue Aug 27 23:12:07 2024 +0000 |
| tree | 070d3ab7f54ff6210972e84cb2f6eed9f04099a9 | |
| parent | b0e62c2302c092c780cc7456c2375f23c3fa0bc7 [diff] | |
| parent | e6bd90215e40a36dadcdba45aae3de865e0c5ac9 [diff] |
Snap for 12283639 from e6bd90215e40a36dadcdba45aae3de865e0c5ac9 to 24Q4-release Change-Id: I019ceaf1ccca9365771a769c8613555bc89ce8c0
This crate provides a macro that extracts documentation comments from Cargo.toml
To use this crate, add #![doc = document_features::document_features!()] in your crate documentation. The document_features!() macro reads your Cargo.toml file, extracts feature comments and generates a markdown string for your documentation.
Use ## and #! comments in your Cargo.toml to document features, for example:
[dependencies] document-features = "0.2" ## ... [features] ## The foo feature enables the `foo` functions foo = [] ## The bar feature enables the [`bar`] module bar = [] #! ### Experimental features #! The following features are experimental ## Activate the fusion reactor fusion = []
These comments keep the feature definition and documentation next to each other, and they are then rendered into your crate documentation.
Check out the documentation for more details.
Contributions are welcome. We accept pull requests and bug reports.
MIT OR Apache-2.0