diff --git a/cawg_identity/Cargo.toml b/cawg_identity/Cargo.toml index 86c6999d3..c5ddfafc8 100644 --- a/cawg_identity/Cargo.toml +++ b/cawg_identity/Cargo.toml @@ -16,6 +16,10 @@ edition = "2021" rust-version = "1.81.0" exclude = ["tests/fixtures"] +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] } +# Workaround for https://github.com/est31/cargo-udeps/issues/293. + [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 4a9b6f8db..e17f7e6ac 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -17,6 +17,10 @@ edition = "2018" homepage = "https://contentauthenticity.org" repository = "https://github.com/contentauth/c2pa-rs/tree/main/cli" +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] } +# Workaround for https://github.com/est31/cargo-udeps/issues/293. + [dependencies] anyhow = "1.0" atree = "0.5.2" diff --git a/export_schema/Cargo.toml b/export_schema/Cargo.toml index 47795c8fc..2246a394c 100644 --- a/export_schema/Cargo.toml +++ b/export_schema/Cargo.toml @@ -6,6 +6,10 @@ license = "MIT OR Apache-2.0" edition = "2018" rust-version = "1.81.0" +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] } +# Workaround for https://github.com/est31/cargo-udeps/issues/293. + [dependencies] anyhow = "1.0.40" c2pa = { path = "../sdk", default-features = false, features = ["json_schema", "unstable_api"] } diff --git a/internal/crypto/Cargo.toml b/internal/crypto/Cargo.toml index a98bdc982..db9f49fe4 100644 --- a/internal/crypto/Cargo.toml +++ b/internal/crypto/Cargo.toml @@ -21,6 +21,10 @@ edition = "2021" rust-version = "1.81.0" exclude = ["tests/fixtures"] +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] } +# Workaround for https://github.com/est31/cargo-udeps/issues/293. + [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] diff --git a/internal/status-tracker/Cargo.toml b/internal/status-tracker/Cargo.toml index 101685fb8..ee1c2e0d1 100644 --- a/internal/status-tracker/Cargo.toml +++ b/internal/status-tracker/Cargo.toml @@ -16,6 +16,10 @@ edition = "2021" rust-version = "1.81.0" exclude = ["tests/fixtures"] +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] } +# Workaround for https://github.com/est31/cargo-udeps/issues/293. + [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] diff --git a/make_test_images/Cargo.toml b/make_test_images/Cargo.toml index 9ecbaeb7e..68acd974b 100644 --- a/make_test_images/Cargo.toml +++ b/make_test_images/Cargo.toml @@ -6,6 +6,10 @@ license = "MIT OR Apache-2.0" edition = "2021" rust-version = "1.81.0" +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] } +# Workaround for https://github.com/est31/cargo-udeps/issues/293. + [[bin]] name = "make_test_images" required-features = ["default"] diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index 4818cf8e8..db5db8594 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -43,6 +43,10 @@ unstable_api = [] # It enables some low-overhead timing features used in our development cycle. diagnostics = [] +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] } +# Workaround for https://github.com/est31/cargo-udeps/issues/293. + [[example]] name = "client" required-features = ["file_io"]