Skip to content

Commit

Permalink
fix no_std builds
Browse files Browse the repository at this point in the history
Signed-off-by: xermicus <[email protected]>
  • Loading branch information
xermicus committed May 28, 2024
1 parent 0773e83 commit 0f54dad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ extern crate rand;
#[cfg(feature = "rand")]
mod random_state;

#[cfg(feature = "std")]
mod seeded_state;

use core::convert::TryInto;
Expand All @@ -46,6 +47,7 @@ pub type FxHashSet<V> = HashSet<V, FxBuildHasher>;
#[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
Expand Down

0 comments on commit 0f54dad

Please sign in to comment.