mirror of
https://github.com/RustCrypto/password-hashes.git
synced 2026-01-25 04:06:23 +00:00
scrypt: fix doctest gating (#828)
This commit is contained in:
@@ -17,8 +17,14 @@
|
||||
//!
|
||||
//! # Usage (simple PHC password hash usage with default params)
|
||||
//!
|
||||
#![cfg_attr(all(feature = "alloc", feature = "getrandom"), doc = "```")]
|
||||
#![cfg_attr(not(all(feature = "alloc", feature = "getrandom")), doc = "```ignore")]
|
||||
#![cfg_attr(
|
||||
all(feature = "alloc", feature = "getrandom", feature = "phc"),
|
||||
doc = "```"
|
||||
)]
|
||||
#![cfg_attr(
|
||||
not(all(feature = "alloc", feature = "getrandom", feature = "phc")),
|
||||
doc = "```ignore"
|
||||
)]
|
||||
//! # fn main() -> Result<(), Box<dyn core::error::Error>> {
|
||||
//! // NOTE: example requires `getrandom` feature is enabled
|
||||
//!
|
||||
|
||||
Reference in New Issue
Block a user