From 554cd69f91bb98eef9033531d9b1c3daee305c53 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 24 Feb 2026 12:32:51 +0800 Subject: 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 --- systems/_constants/macros/Cargo.toml | 3 +-- systems/_constants/macros/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'systems/_constants') 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] -- cgit