Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[workspace]
members = ["crates/*"]
resolver = "2"

[workspace.dependencies]
heck = "0.5.0"
http = "1.4.0"
regex = "1.12.2"
10 changes: 5 additions & 5 deletions crates/const-str-proc-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
20 changes: 9 additions & 11 deletions crates/const-str/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 1 addition & 0 deletions crates/const-str/src/__ctfe/ascii_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down