aboutsummaryrefslogtreecommitdiff
path: root/mingling/Cargo.toml
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-03 00:27:31 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-03 00:28:29 +0800
commit3668b49c0d3423f1d5d10bb6b4a0e0e7b61f2046 (patch)
treeb006a40678f68c3d9c53a9035ca251596701ecef /mingling/Cargo.toml
parenteaf1ce9fa63e364774a4685b777cacdbb4f63df6 (diff)
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.
Diffstat (limited to 'mingling/Cargo.toml')
-rw-r--r--mingling/Cargo.toml21
1 files changed, 15 insertions, 6 deletions
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"]