diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 7c054657d7..135e9cbadd 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -31,3 +31,7 @@ rand = "0.8.4" [[bench]] harness = false name = "benches_main" + +[lints.rust] +# Required for Rust >= 1.84 && pyo3 < 0.23 +unexpected_cfgs = { level = "allow", check-cfg = ['cfg(addr_of)'] }