From 15ebffbe140397ca5f66fd6143d20998eced902b Mon Sep 17 00:00:00 2001 From: Nugine Date: Tue, 20 Jan 2026 21:22:52 +0800 Subject: [PATCH 1/4] regex --- crates/const-str/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/const-str/Cargo.toml b/crates/const-str/Cargo.toml index 70bd150..476f76c 100644 --- a/crates/const-str/Cargo.toml +++ b/crates/const-str/Cargo.toml @@ -15,7 +15,7 @@ rust-version = "1.77.0" default = [] std = [] proc = ["dep:const-str-proc-macro"] -regex = ["proc", "const-str-proc-macro?/regex"] +regex = ["proc", "const-str-proc-macro?/regex", "dep:regex"] http = ["proc", "const-str-proc-macro?/http", "dep:http"] case = ["proc", "const-str-proc-macro?/heck"] all = ["std", "proc", "regex", "http", "case"] @@ -27,6 +27,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] http = { version = "1.0.0", optional = true } +regex = { version = "1.7.0", optional = true } [dependencies.const-str-proc-macro] version = "1.0.0" @@ -34,5 +35,4 @@ path = "../const-str-proc-macro" optional = true [dev-dependencies] -regex = "1.7.0" heck = "0.5.0" From 3c71eaebfcc29476d591d93937a179d3f9346b7d Mon Sep 17 00:00:00 2001 From: Nugine Date: Tue, 20 Jan 2026 21:22:52 +0800 Subject: [PATCH 2/4] heck --- crates/const-str/Cargo.toml | 6 ++---- crates/const-str/src/__ctfe/ascii_case.rs | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/const-str/Cargo.toml b/crates/const-str/Cargo.toml index 476f76c..6cd239a 100644 --- a/crates/const-str/Cargo.toml +++ b/crates/const-str/Cargo.toml @@ -17,7 +17,7 @@ std = [] proc = ["dep:const-str-proc-macro"] regex = ["proc", "const-str-proc-macro?/regex", "dep:regex"] http = ["proc", "const-str-proc-macro?/http", "dep:http"] -case = ["proc", "const-str-proc-macro?/heck"] +case = ["proc", "const-str-proc-macro?/heck", "dep:heck"] all = ["std", "proc", "regex", "http", "case"] unstable = [] @@ -26,6 +26,7 @@ all-features = true rustdoc-args = ["--cfg", "docsrs"] [dependencies] +heck = { version = "0.5.0", optional = true } http = { version = "1.0.0", optional = true } regex = { version = "1.7.0", optional = true } @@ -33,6 +34,3 @@ regex = { version = "1.7.0", optional = true } version = "1.0.0" path = "../const-str-proc-macro" optional = true - -[dev-dependencies] -heck = "0.5.0" diff --git a/crates/const-str/src/__ctfe/ascii_case.rs b/crates/const-str/src/__ctfe/ascii_case.rs index a21eb07..d1a6588 100644 --- a/crates/const-str/src/__ctfe/ascii_case.rs +++ b/crates/const-str/src/__ctfe/ascii_case.rs @@ -346,6 +346,7 @@ macro_rules! convert_ascii_case { #[cfg(test)] mod tests { + #[cfg(feature = "case")] #[test] fn test_conv_ascii_case() { macro_rules! test_conv_ascii_case { From 529f08d46d278a89c94309583d053f0be0792109 Mon Sep 17 00:00:00 2001 From: Nugine Date: Tue, 20 Jan 2026 21:25:56 +0800 Subject: [PATCH 3/4] ci --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fbbc06..18ae261 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,6 +60,5 @@ jobs: cargo llvm-cov --workspace --all-features --codecov --output-path target/codecov.json - uses: codecov/codecov-action@v5 with: - token: ${{ secrets.CODECOV_TOKEN }} files: target/codecov.json fail_ci_if_error: true From 2d08eba446de0cefe195909ad35cdd71b9c27177 Mon Sep 17 00:00:00 2001 From: Nugine Date: Tue, 20 Jan 2026 21:30:28 +0800 Subject: [PATCH 4/4] workspace-level --- Cargo.toml | 5 +++++ crates/const-str-proc-macro/Cargo.toml | 10 +++++----- crates/const-str/Cargo.toml | 14 +++++++------- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d767148..fdf50f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,8 @@ [workspace] members = ["crates/*"] resolver = "2" + +[workspace.dependencies] +heck = "0.5.0" +http = "1.4.0" +regex = "1.12.2" diff --git a/crates/const-str-proc-macro/Cargo.toml b/crates/const-str-proc-macro/Cargo.toml index 519effb..6f5531d 100644 --- a/crates/const-str-proc-macro/Cargo.toml +++ b/crates/const-str-proc-macro/Cargo.toml @@ -17,9 +17,9 @@ rust-version = "1.65.0" proc-macro = true [dependencies] -syn = "2.0.2" -quote = "1.0.21" -regex = { version = "1.7.0", optional = true } -http = { version = "1.0.0", optional = true } +heck = { workspace = true, optional = true } +http = { workspace = true, optional = true } proc-macro2 = "1.0.47" -heck = { version = "0.5.0", optional = true } +quote = "1.0.21" +regex = { workspace = true, optional = true } +syn = "2.0.2" diff --git a/crates/const-str/Cargo.toml b/crates/const-str/Cargo.toml index 6cd239a..ab9d1e4 100644 --- a/crates/const-str/Cargo.toml +++ b/crates/const-str/Cargo.toml @@ -11,6 +11,10 @@ categories = ["text-processing", "no-std"] readme = "README.md" rust-version = "1.77.0" +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [features] default = [] std = [] @@ -21,14 +25,10 @@ case = ["proc", "const-str-proc-macro?/heck", "dep:heck"] all = ["std", "proc", "regex", "http", "case"] unstable = [] -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] - [dependencies] -heck = { version = "0.5.0", optional = true } -http = { version = "1.0.0", optional = true } -regex = { version = "1.7.0", optional = true } +heck = { workspace = true, optional = true } +http = { workspace = true, optional = true } +regex = { workspace = true, optional = true } [dependencies.const-str-proc-macro] version = "1.0.0"