diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-24 12:32:51 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-24 12:32:51 +0800 |
| commit | 554cd69f91bb98eef9033531d9b1c3daee305c53 (patch) | |
| tree | 19f3a6b9f63f4db7c1eb31f2213293953dde34dc /systems/_constants/macros | |
| parent | fbf4054ea8e11bae65196b7069c56375ca4e79b9 (diff) | |
Add deprecated feature and migrate string_proc to just_fmt
- Add `deprecated` feature flag to Cargo.toml
- Gate `string_proc` module behind both `deprecated` and `string_proc`
features
- Replace internal `string_proc` dependency with `just_fmt` crate in
constants macros
- Mark all `string_proc` modules as deprecated with migration
instructions
- Remove `string_proc` dependency from sheet system
Diffstat (limited to 'systems/_constants/macros')
| -rw-r--r-- | systems/_constants/macros/Cargo.toml | 3 | ||||
| -rw-r--r-- | systems/_constants/macros/src/lib.rs | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/systems/_constants/macros/Cargo.toml b/systems/_constants/macros/Cargo.toml index 2aec6bc..1b1012b 100644 --- a/systems/_constants/macros/Cargo.toml +++ b/systems/_constants/macros/Cargo.toml @@ -11,5 +11,4 @@ syn = { version = "2.0", features = ["full", "extra-traits"] } quote = "1.0" proc-macro2 = "1.0" regex = "1.12" - -string_proc = { path = "../../../utils/string_proc" } +just_fmt = "0.1" diff --git a/systems/_constants/macros/src/lib.rs b/systems/_constants/macros/src/lib.rs index f6cf945..2d3f255 100644 --- a/systems/_constants/macros/src/lib.rs +++ b/systems/_constants/macros/src/lib.rs @@ -1,6 +1,6 @@ +use just_fmt::pascal_case; use proc_macro::TokenStream; use quote::quote; -use string_proc::pascal_case; use syn::{Expr, ExprLit, Ident, Item, ItemMod, Lit, LitStr, parse_macro_input}; #[proc_macro_attribute] |
