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 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 70bd150..ab9d1e4 100644 --- a/crates/const-str/Cargo.toml +++ b/crates/const-str/Cargo.toml @@ -11,28 +11,26 @@ 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 = [] 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"] +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] -http = { version = "1.0.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" path = "../const-str-proc-macro" optional = true - -[dev-dependencies] -regex = "1.7.0" -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 {