Skip to content

Commit 74fe8f1

Browse files
committed
chore: Work around recent issue with #[cfg(test)]
See est31/cargo-udeps#293, related to rust-lang/rust#131729.
1 parent 75a7693 commit 74fe8f1

File tree

7 files changed

+28
-0
lines changed

7 files changed

+28
-0
lines changed

cawg_identity/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ edition = "2021"
1616
rust-version = "1.81.0"
1717
exclude = ["tests/fixtures"]
1818

19+
[lints.rust]
20+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] }
21+
# Workaround for https://github.com/est31/cargo-udeps/issues/293.
22+
1923
[package.metadata.docs.rs]
2024
all-features = true
2125
rustdoc-args = ["--cfg", "docsrs"]

cli/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ edition = "2018"
1717
homepage = "https://contentauthenticity.org"
1818
repository = "https://github.com/contentauth/c2pa-rs/tree/main/cli"
1919

20+
[lints.rust]
21+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] }
22+
# Workaround for https://github.com/est31/cargo-udeps/issues/293.
23+
2024
[dependencies]
2125
anyhow = "1.0"
2226
atree = "0.5.2"

export_schema/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ license = "MIT OR Apache-2.0"
66
edition = "2018"
77
rust-version = "1.81.0"
88

9+
[lints.rust]
10+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] }
11+
# Workaround for https://github.com/est31/cargo-udeps/issues/293.
12+
913
[dependencies]
1014
anyhow = "1.0.40"
1115
c2pa = { path = "../sdk", default-features = false, features = ["json_schema", "unstable_api"] }

internal/crypto/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ edition = "2021"
2121
rust-version = "1.81.0"
2222
exclude = ["tests/fixtures"]
2323

24+
[lints.rust]
25+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] }
26+
# Workaround for https://github.com/est31/cargo-udeps/issues/293.
27+
2428
[package.metadata.docs.rs]
2529
all-features = true
2630
rustdoc-args = ["--cfg", "docsrs"]

internal/status-tracker/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ edition = "2021"
1616
rust-version = "1.81.0"
1717
exclude = ["tests/fixtures"]
1818

19+
[lints.rust]
20+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] }
21+
# Workaround for https://github.com/est31/cargo-udeps/issues/293.
22+
1923
[package.metadata.docs.rs]
2024
all-features = true
2125
rustdoc-args = ["--cfg", "docsrs"]

make_test_images/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ license = "MIT OR Apache-2.0"
66
edition = "2021"
77
rust-version = "1.81.0"
88

9+
[lints.rust]
10+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] }
11+
# Workaround for https://github.com/est31/cargo-udeps/issues/293.
12+
913
[[bin]]
1014
name = "make_test_images"
1115
required-features = ["default"]

sdk/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ unstable_api = []
4343
# It enables some low-overhead timing features used in our development cycle.
4444
diagnostics = []
4545

46+
[lints.rust]
47+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] }
48+
# Workaround for https://github.com/est31/cargo-udeps/issues/293.
49+
4650
[[example]]
4751
name = "client"
4852
required-features = ["file_io"]

0 commit comments

Comments
 (0)