fune/third_party/rust/document-features
2024-02-27 19:24:42 +00:00
..
tests Bug 1879989: build(webgpu): update wgpu to 23392c5228ce81ae3a9772cf93da933be2d5961c r=webgpu-reviewers,supply-chain-reviewers,nical 2024-02-27 19:24:42 +00:00
.cargo-checksum.json Bug 1879989: build(webgpu): update wgpu to 23392c5228ce81ae3a9772cf93da933be2d5961c r=webgpu-reviewers,supply-chain-reviewers,nical 2024-02-27 19:24:42 +00:00
Cargo.toml Bug 1879989: build(webgpu): update wgpu to 23392c5228ce81ae3a9772cf93da933be2d5961c r=webgpu-reviewers,supply-chain-reviewers,nical 2024-02-27 19:24:42 +00:00
CHANGELOG.md Bug 1879989: build(webgpu): update wgpu to 23392c5228ce81ae3a9772cf93da933be2d5961c r=webgpu-reviewers,supply-chain-reviewers,nical 2024-02-27 19:24:42 +00:00
lib.rs Bug 1879989: build(webgpu): update wgpu to 23392c5228ce81ae3a9772cf93da933be2d5961c r=webgpu-reviewers,supply-chain-reviewers,nical 2024-02-27 19:24:42 +00:00
LICENSE-APACHE Bug 1879989: build(webgpu): update wgpu to 23392c5228ce81ae3a9772cf93da933be2d5961c r=webgpu-reviewers,supply-chain-reviewers,nical 2024-02-27 19:24:42 +00:00
LICENSE-MIT Bug 1879989: build(webgpu): update wgpu to 23392c5228ce81ae3a9772cf93da933be2d5961c r=webgpu-reviewers,supply-chain-reviewers,nical 2024-02-27 19:24:42 +00:00
README.md Bug 1879989: build(webgpu): update wgpu to 23392c5228ce81ae3a9772cf93da933be2d5961c r=webgpu-reviewers,supply-chain-reviewers,nical 2024-02-27 19:24:42 +00:00
rustfmt.toml Bug 1879989: build(webgpu): update wgpu to 23392c5228ce81ae3a9772cf93da933be2d5961c r=webgpu-reviewers,supply-chain-reviewers,nical 2024-02-27 19:24:42 +00:00

Document your crate's feature flags

Crates.io Documentation

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

Contributions are welcome. We accept pull requests and bug reports.

License

MIT OR Apache-2.0