commit | 2ffc66675f631408ba23d42ff4800fcec830f0fe | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Mon May 20 16:59:45 2024 +0000 |
committer | James Farrell <[email protected]> | Mon May 20 16:59:45 2024 +0000 |
tree | c9bd56e43ebfc1397609709f1690d1ee829007a7 | |
parent | c2b25bda527f142a7c5acd8a46b8eb4ea827d12f [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: I19d5fc3d7b5ef5c8ffd789e2333ef0f636d9b4da
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