scrypt: fix doctest gating (#828)

This commit is contained in:
Artyom Pavlov
2026-01-21 20:57:43 +03:00
committed by GitHub
parent edfd311b47
commit 53cd99e770

View File

@@ -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
//!