aboutsummaryrefslogtreecommitdiff
path: root/mingling
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-04-09 15:12:11 +0800
committer魏曹先生 <1992414357@qq.com>2026-04-09 15:12:11 +0800
commit4764c3c818e3da16a3cba3b9877d9beb635e4237 (patch)
tree3adc438ca9b56f0fcd95354af4bd8329640ecce4 /mingling
parent240361b240d638363346013160b0943b47769c37 (diff)
Add basic completion module with shell integration
Diffstat (limited to 'mingling')
-rw-r--r--mingling/Cargo.toml3
-rw-r--r--mingling/src/lib.rs6
2 files changed, 8 insertions, 1 deletions
diff --git a/mingling/Cargo.toml b/mingling/Cargo.toml
index 3d19be4..09b490b 100644
--- a/mingling/Cargo.toml
+++ b/mingling/Cargo.toml
@@ -17,13 +17,14 @@ mingling = { path = ".", features = ["full"] }
[features]
default = ["mingling_core/default"]
-full = ["mingling_core/full", "general_renderer", "parser"]
+full = ["mingling_core/full", "mingling_macros/full", "comp", "parser"]
general_renderer = [
"mingling_core/general_renderer",
"dep:serde",
"mingling_macros/general_renderer",
]
+comp = ["mingling_core/comp", "mingling_macros/comp"]
parser = ["dep:size"]
[dependencies]
diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs
index eb1d970..140d563 100644
--- a/mingling/src/lib.rs
+++ b/mingling/src/lib.rs
@@ -67,6 +67,9 @@ pub mod parser;
pub mod macros {
/// Used to generate a struct implementing the `Chain` trait via a method
pub use mingling_macros::chain;
+ /// Used to generate completion entry
+ #[cfg(feature = "comp")]
+ pub use mingling_macros::completion;
/// Used to create a dispatcher that routes to a `Chain`
pub use mingling_macros::dispatcher;
/// Used to create a dispatcher that routes to a `Renderer`
@@ -85,6 +88,9 @@ pub mod macros {
pub use mingling_macros::r_println;
/// Used to generate a struct implementing the `Renderer` trait via a method
pub use mingling_macros::renderer;
+ #[cfg(feature = "comp")]
+ /// Used to generate suggestions
+ pub use mingling_macros::suggest;
}
/// derive macro Groupped