Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extract documentation for the feature flags from comments in Cargo.toml

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

slint-ui/document-features

Repository files navigation

Crates.ioDocumentation

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.Thedocument_features!() macro reads yourCargo.toml file, extracts feature comments and generatesa 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` functionsfoo = []## The bar feature enables the [`bar`] modulebar = []#! ### Experimental features#! The following features are experimental## Activate the fusion reactorfusion = []

These comments keep the feature definition and documentation next to each other, and they are thenrendered into your crate documentation.

Check out thedocumentation for more details.

Contributions

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

License

MIT OR Apache-2.0

About

Extract documentation for the feature flags from comments in Cargo.toml

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors9

Languages


[8]ページ先頭

©2009-2025 Movatter.jp