diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-20 12:54:49 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-20 12:54:49 +0800 |
| commit | c04df33fba43c41548d5cc7b3fe2d746f639798e (patch) | |
| tree | c010b09a4ddf1e38fd2449ba2275188ea5bc1c67 /mingling/Cargo.toml | |
| parent | 12d8d151de77ea219d96b22df6f1172433a7d87f (diff) | |
feat: add docs_rs feature and improve documentation build
Add `docs_rs` feature flag to enable docs.rs-specific configuration,
including `--generate-link-to-definition` and logo display.
Include the feature in build scripts, editor settings, and feature
constants for consistent documentation generation.
Diffstat (limited to 'mingling/Cargo.toml')
| -rw-r--r-- | mingling/Cargo.toml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mingling/Cargo.toml b/mingling/Cargo.toml index 2509029..351384f 100644 --- a/mingling/Cargo.toml +++ b/mingling/Cargo.toml @@ -21,7 +21,9 @@ mingling = { path = ".", features = [ ] } [package.metadata.docs.rs] +rustdoc-args = ["--generate-link-to-definition"] features = [ + "docs_rs", "core", "macros", "builds", @@ -87,6 +89,9 @@ ron_serde_fmt = ["mingling_core/ron_serde_fmt"] extra_macros = ["mingling_macros/extra_macros"] +# Section only shown in docs.rs +docs_rs = [] + [dependencies] mingling_core = { workspace = true, optional = true } mingling_macros = { workspace = true, optional = true } |
