aboutsummaryrefslogtreecommitdiff
path: root/just_template_macros/Cargo.toml
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-29 03:54:54 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-29 03:54:54 +0800
commitca7527681b609fedc368ea973022b004469035e6 (patch)
tree47109782fa5a4435889d93a823db3a4e1f5e7bd6 /just_template_macros/Cargo.toml
parentba15b7c06468cb6c52c8d2a53419fd83f9ebcb8b (diff)
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.
Diffstat (limited to 'just_template_macros/Cargo.toml')
-rw-r--r--just_template_macros/Cargo.toml14
1 files changed, 14 insertions, 0 deletions
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"] }