From 3668b49c0d3423f1d5d10bb6b4a0e0e7b61f2046 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 3 Aug 2026 00:27:31 +0800 Subject: docs: Add preset feature groups and improve feature docs Add convenience presets (`mini`, `advanced`, `full`, `build_advanced`, `build_full`) to `mingling/Cargo.toml` and document them in both English and Chinese feature docs. Update getting-started guides to reflect the new default `core`/`macros` features. --- mingling/Cargo.toml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'mingling/Cargo.toml') diff --git a/mingling/Cargo.toml b/mingling/Cargo.toml index 6f1cc16..f17285f 100644 --- a/mingling/Cargo.toml +++ b/mingling/Cargo.toml @@ -37,17 +37,28 @@ features = [ ] [features] + +# Presets +mini = ["extras", "picker"] +advanced = ["extras", "picker", "repl", "comp", "dispatch_tree", "structural_renderer"] +full = ["extras", "picker", "repl", "clap", "comp", "dispatch_tree", "structural_renderer_full", "pathf"] +build_advanced = ["build", "comp"] +build_full = ["build", "comp", "pathf", "dispatch_tree"] + +# Core core = ["dep:mingling_core", "mingling_core/default"] macros = ["dep:mingling_macros", "mingling_macros/default"] +# Special features nightly = ["mingling_core/nightly", "mingling_macros/nightly"] debug = ["mingling_core/debug"] async = ["mingling_core/async", "mingling_macros/async"] - -build = ["mingling_core/build"] - default = ["core", "macros"] +build = ["mingling_core/build"] +# - Section only shown in docs.rs +docs_rs = [] +# Features clap = ["mingling_core/clap", "mingling_macros/clap"] dispatch_tree = ["mingling_core/dispatch_tree", "mingling_macros/dispatch_tree"] repl = ["mingling_core/repl", "mingling_macros/repl"] @@ -90,9 +101,7 @@ ron_serde_fmt = ["mingling_core/ron_serde_fmt"] extras = ["mingling_macros/extras"] -# Section only shown in docs.rs -docs_rs = [] - +# - LEGACY - # These are old names, will be Breaking Change in the future builds = ["mingling_core/build"] -- cgit