commit | ab0cc5f188f275d437dab48c577b900173eb4b62 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Thu Oct 05 21:37:17 2023 +0000 |
committer | James Farrell <[email protected]> | Thu Oct 05 21:37:17 2023 +0000 |
tree | 3d76baf576da4b2d34352ceb0dfe284da37dd45a | |
parent | 0aaf01b334deaf1b08c156e9cabae2ff386ba5c8 [diff] |
Update Android.bp to reflect aosp/2763825 Test: Ran cargo2android. Treehugger. Change-Id: I70f98935ce0da7c850e29dfc7d837b2734303233
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