Skip to content

Commit

Permalink
Merge pull request #372 from mkroening/doc_auto_cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu authored Mar 8, 2023
2 parents 56b91e9 + 4cd9cf6 commit 6ab6c15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lock_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ keywords = ["mutex", "rwlock", "lock", "no_std"]
categories = ["concurrency", "no-std"]
edition = "2018"

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

[dependencies]
scopeguard = { version = "1.1.0", default-features = false }
owning_ref = { version = "0.4.1", optional = true }
Expand Down
1 change: 1 addition & 0 deletions lock_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
//! requires the `alloc` crate to be present.
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]

Expand Down

0 comments on commit 6ab6c15

Please sign in to comment.