Skip to content

Commit

Permalink
allow 'extern crate alloc' even when that is the crates.io crate
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Nov 13, 2024
1 parent e3311d9 commit b1ea850
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit b1ea850

Please sign in to comment.