aboutsummaryrefslogtreecommitdiff
path: root/mling/src/cli/namespace_mgr.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-16 22:31:52 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-16 22:31:52 +0800
commit60b91db3df168532f9143f0cafb7b5166e1dc78b (patch)
treeddb10f909a46033af16d725ab0dae8385227b985 /mling/src/cli/namespace_mgr.rs
parent05d07bbc627b59fd07a8764a972b4aac63a46f53 (diff)
Accept paths for program name parameters in macros
All proc macros (`pack!`, `dispatcher!`, `#[chain]`, `#[program_setup]`, `#[dispatcher_clap]`, `#[derive(Groupped)]`) now parse program names as `syn::Path` instead of bare `Ident`, allowing use of paths like `crate::MyProgram` or `my_crate::MyProgram`. The default program name `ThisProgram` is no longer re-exported or required as an import — generated code references `crate::ThisProgram` directly.
Diffstat (limited to 'mling/src/cli/namespace_mgr.rs')
-rw-r--r--mling/src/cli/namespace_mgr.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/mling/src/cli/namespace_mgr.rs b/mling/src/cli/namespace_mgr.rs
index 4f70c15..0f5a115 100644
--- a/mling/src/cli/namespace_mgr.rs
+++ b/mling/src/cli/namespace_mgr.rs
@@ -4,10 +4,7 @@ use mingling::{
parser::{Picker, Yes},
};
-use crate::{
- ThisProgram,
- namespace_manager::{list_namespaces, remove_namespace, set_namespace_trusted},
-};
+use crate::namespace_manager::{list_namespaces, remove_namespace, set_namespace_trusted};
dispatcher!("trust", TrustNamespaceCommand => TrustNamespaceEntry);
dispatcher!("untrust", UntrustNamespaceCommand => UntrustNamespaceEntry);