From ca7527681b609fedc368ea973022b004469035e6 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 29 Jun 2026 03:54:54 +0800 Subject: feat(just_template): add proc-macro `tmpl!` and restructure crate Move the old `tmpl!` and `tmpl_param!` macros into a dedicated `just_template_macros` proc-macro crate. The new `tmpl!` macro supports both simple parameter assignment and multi-arm implementation blocks with per-arm overrides. Remove the deprecated `deprecated` module and update tests accordingly. --- just_template_macros/Cargo.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 just_template_macros/Cargo.toml (limited to 'just_template_macros/Cargo.toml') diff --git a/just_template_macros/Cargo.toml b/just_template_macros/Cargo.toml new file mode 100644 index 0000000..c033d1b --- /dev/null +++ b/just_template_macros/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "just_template_macros" +version.workspace = true +description.workspace = true +authors.workspace = true +edition.workspace = true + +[lib] +proc-macro = true + +[dependencies] +proc-macro2 = "1.0.106" +quote = "1.0.46" +syn = { version = "2.0.118", features = ["full", "extra-traits"] } -- cgit