diff --git a/Cargo-zng.toml b/Cargo-zng.toml index 0c8c092c..9a6a3ee6 100644 --- a/Cargo-zng.toml +++ b/Cargo-zng.toml @@ -37,3 +37,6 @@ libc = "0.2.43" [build-dependencies] cmake = "0.1" + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(zng)'] } diff --git a/Cargo.toml b/Cargo.toml index 80fe3dce..84ba77be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -91,3 +91,6 @@ stock-zlib = [] asm = [] # Enable this feature if you want to have a statically linked libz static = [] + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(zng)'] }