diff --git a/Cargo.toml b/Cargo.toml index e5c4c91e..6bb3b5e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,3 +44,12 @@ path = "./devicemapper-rs-sys" [build-dependencies] semver = "1.0.0" + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(devicemapper41supported)', + 'cfg(devicemapper42supported)', + 'cfg(devicemapper437supported)', + 'cfg(devicemapper441supported)', + 'cfg(devicemapper46supported)' +] }