diff --git a/.github/workflows/scrypt.yml b/.github/workflows/scrypt.yml index 082f37a6..ff0c285d 100644 --- a/.github/workflows/scrypt.yml +++ b/.github/workflows/scrypt.yml @@ -60,3 +60,4 @@ jobs: - run: cargo test --no-default-features - run: cargo test - run: cargo test --all-features + - run: cargo doc --no-default-features diff --git a/scrypt/src/params.rs b/scrypt/src/params.rs index 4c81644b..148fd7f8 100644 --- a/scrypt/src/params.rs +++ b/scrypt/src/params.rs @@ -5,7 +5,7 @@ use crate::errors::InvalidParams; #[cfg(feature = "simple")] use password_hash::{Error, ParamsString, PasswordHash, errors::InvalidValue}; -#[cfg(doc)] +#[cfg(all(feature = "simple", doc))] use password_hash::PasswordHasher; /// The Scrypt parameter values.