diff --git a/bip0039/Cargo.toml b/bip0039/Cargo.toml index 855cde7..43e8956 100644 --- a/bip0039/Cargo.toml +++ b/bip0039/Cargo.toml @@ -17,10 +17,10 @@ exclude = ["words"] # docs.rs-specific configuration [package.metadata.docs.rs] -# RUSTDOCFLAGS="--cfg doc_cfg" +# RUSTDOCFLAGS="--cfg docsrs" # To build locally: cargo +nightly doc --all-features --no-deps --open all-features = true -rustdoc-args = ["--cfg", "doc_cfg"] +rustdoc-args = ["--cfg", "docsrs"] [features] default = ["std", "rand"] diff --git a/bip0039/src/lib.rs b/bip0039/src/lib.rs index 9218449..d7d8ae9 100644 --- a/bip0039/src/lib.rs +++ b/bip0039/src/lib.rs @@ -32,7 +32,7 @@ println!("phrase: {}", mnemonic.phrase()); #![deny(unused_imports)] #![deny(missing_docs)] #![cfg_attr(not(feature = "std"), no_std)] -#![cfg_attr(doc_cfg, feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] #[cfg(not(feature = "std"))] extern crate alloc;