diff --git a/Cargo.toml b/Cargo.toml index 06c0966..e6bf3f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,6 +34,11 @@ shadow_reuse = "deny" shadow_same = "deny" shadow_unrelated = "deny" +# The wrappers' private field is deliberately type-erased and therefore cannot +# express Send/Sync structurally. Their audited APIs preserve the element bounds +# documented on the corresponding unsafe implementations. +non_send_fields_in_send_ty = { level = "allow", priority = 1 } + # Force using expect and providing a reason allow_attributes = "deny" allow_attributes_without_reason = "deny"