From b1ea85003f3554789ebc20145c14d6331ebb7bc3 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 13 Nov 2024 09:56:48 +0100 Subject: [PATCH] allow 'extern crate alloc' even when that is the crates.io crate --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index a2d0d03b8..6c3256829 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,6 +52,7 @@ pub enum DefaultHashBuilder {} extern crate std; #[cfg_attr(test, macro_use)] +#[cfg_attr(feature = "rustc-dep-of-std", allow(unused_extern_crates))] extern crate alloc; #[cfg(feature = "nightly")]