Skip to content

Commit

Permalink
Rename doc_cfg to docsrs
Browse files Browse the repository at this point in the history
Fix the `unexpected_cfgs` lint warning.
  • Loading branch information
sorairolake committed May 19, 2024
1 parent b312e2d commit c1eb655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/scryptenc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ include = ["/LICENSES", "/README.md", "/src"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "doc_cfg"]
rustdoc-args = ["--cfg", "docsrs"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion crates/scryptenc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

#![doc(html_root_url = "https://docs.rs/scryptenc/0.9.5/")]
#![no_std]
#![cfg_attr(doc_cfg, feature(doc_auto_cfg, doc_cfg))]
#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))]
// Lint levels of rustc.
#![forbid(unsafe_code)]
#![deny(missing_debug_implementations, missing_docs)]
Expand Down

0 comments on commit c1eb655

Please sign in to comment.