Skip to content

Commit

Permalink
chore(bip0039): fix docsrs
Browse files Browse the repository at this point in the history
  • Loading branch information
koushiro committed Aug 17, 2024
1 parent 1f2e264 commit f2c44d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bip0039/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion bip0039/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f2c44d1

Please sign in to comment.