| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| tests/ | 04-Jul-2025 | - | 38 | 35 | ||
| .android-checksum.json | D | 04-Jul-2025 | 1.1 KiB | 1 | 1 | |
| .cargo-checksum.json | D | 04-Jul-2025 | 739 | 1 | 1 | |
| Android.bp | D | 04-Jul-2025 | 722 | 26 | 22 | |
| CHANGELOG.md | D | 04-Jul-2025 | 1.3 KiB | 59 | 32 | |
| Cargo.toml | D | 04-Jul-2025 | 1.2 KiB | 52 | 46 | |
| LICENSE | D | 04-Jul-2025 | 10 KiB | 74 | 41 | |
| LICENSE-APACHE | D | 04-Jul-2025 | 10 KiB | 74 | 41 | |
| METADATA | D | 04-Jul-2025 | 450 | 18 | 17 | |
| MODULE_LICENSE_APACHE2 | D | 04-Jul-2025 | 0 | |||
| README.md | D | 04-Jul-2025 | 1.3 KiB | 44 | 29 | |
| cargo_embargo.json | D | 04-Jul-2025 | 136 | 9 | 9 | |
| lib.rs | D | 04-Jul-2025 | 29.5 KiB | 1,036 | 791 | |
| rustfmt.toml | D | 04-Jul-2025 | 29 | 2 | 1 |
README.md
1# Document your crate's feature flags 2 3[](https://crates.io/crates/document-features) 4[](https://docs.rs/document-features/) 5 6This crate provides a macro that extracts documentation comments from Cargo.toml 7 8To use this crate, add `#![doc = document_features::document_features!()]` in your crate documentation. 9The `document_features!()` macro reads your `Cargo.toml` file, extracts feature comments and generates 10a markdown string for your documentation. 11 12Use `## ` and `#! ` comments in your Cargo.toml to document features, for example: 13 14```toml 15[dependencies] 16document-features = "0.2" 17## ... 18 19[features] 20## The foo feature enables the `foo` functions 21foo = [] 22## The bar feature enables the [`bar`] module 23bar = [] 24 25#! ### Experimental features 26#! The following features are experimental 27 28## Activate the fusion reactor 29fusion = [] 30``` 31 32These comments keep the feature definition and documentation next to each other, and they are then 33rendered into your crate documentation. 34 35Check out the [documentation](https://docs.rs/document-features/) for more details. 36 37## Contributions 38 39Contributions are welcome. We accept pull requests and bug reports. 40 41## License 42 43MIT OR Apache-2.0 44