From 0f54dade10bc53e5050dcbf759ce177402ada881 Mon Sep 17 00:00:00 2001 From: xermicus Date: Tue, 28 May 2024 14:02:38 +0200 Subject: [PATCH] fix no_std builds Signed-off-by: xermicus --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 72681f7..a8cdedb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,6 +25,7 @@ extern crate rand; #[cfg(feature = "rand")] mod random_state; +#[cfg(feature = "std")] mod seeded_state; use core::convert::TryInto; @@ -46,6 +47,7 @@ pub type FxHashSet = HashSet; #[cfg(feature = "rand")] pub use random_state::{FxHashMapRand, FxHashSetRand, FxRandomState}; +#[cfg(feature = "std")] pub use seeded_state::{FxHashMapSeed, FxHashSetSeed, FxSeededState}; /// A speedy hash algorithm for use within rustc. The hashmap in liballoc