diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e2c51ca..c551724 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -32,6 +32,11 @@ jobs: with: command: test args: --no-default-features --features compile-time-rng + - name: check fixed-seed + uses: actions-rs/cargo@v1 + with: + command: check + args: --no-default-features --features std - name: check uses: actions-rs/cargo@v1 with: diff --git a/src/lib.rs b/src/lib.rs index 4566af0..76664c4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,7 +10,7 @@ //! aHash is not a cryptographically secure hash. //! #![cfg_attr( - any(feature = "compile-time-rng", feature = "runtime-rng"), + feature = "std", doc = r##" # Example ``` diff --git a/src/random_state.rs b/src/random_state.rs index 60ba51f..5f177db 100644 --- a/src/random_state.rs +++ b/src/random_state.rs @@ -212,7 +212,6 @@ impl fmt::Debug for RandomState { impl RandomState { /// Use randomly generated keys #[inline] - #[cfg(any(feature = "compile-time-rng", feature = "runtime-rng"))] pub fn new() -> RandomState { let src = get_src(); let fixed = get_fixed_seeds(); @@ -296,7 +295,6 @@ impl RandomState { } } -#[cfg(any(feature = "compile-time-rng", feature = "runtime-rng"))] impl Default for RandomState { #[inline] fn default() -> Self { @@ -313,7 +311,7 @@ impl BuildHasher for RandomState { /// will generate the same hashes for the same input data. /// #[cfg_attr( - any(feature = "compile-time-rng", feature = "runtime-rng"), + feature = "std", doc = r##" # Examples ``` use ahash::{AHasher, RandomState};