Skip to content

Commit 53cd99e

Browse files
authored
scrypt: fix doctest gating (#828)
1 parent edfd311 commit 53cd99e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scrypt/src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@
1717
//!
1818
//! # Usage (simple PHC password hash usage with default params)
1919
//!
20-
#![cfg_attr(all(feature = "alloc", feature = "getrandom"), doc = "```")]
21-
#![cfg_attr(not(all(feature = "alloc", feature = "getrandom")), doc = "```ignore")]
20+
#![cfg_attr(
21+
all(feature = "alloc", feature = "getrandom", feature = "phc"),
22+
doc = "```"
23+
)]
24+
#![cfg_attr(
25+
not(all(feature = "alloc", feature = "getrandom", feature = "phc")),
26+
doc = "```ignore"
27+
)]
2228
//! # fn main() -> Result<(), Box<dyn core::error::Error>> {
2329
//! // NOTE: example requires `getrandom` feature is enabled
2430
//!

0 commit comments

Comments
 (0)