Skip to content

Commit f9faeb7

Browse files
committed
Privatize docsrs cfg flag
1 parent 779560d commit f9faeb7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ crabgrind = "=0.1.9" # compatible with valgrind package on GHA ubuntu-latest
2626
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies]
2727
web-time = { version = "1", optional = true }
2828

29+
[lints.rust]
30+
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(rustls_pki_types_docsrs)"] }
31+
2932
[package.metadata.docs.rs]
3033
all-features = true
31-
rustdoc-args = ["--cfg", "docsrs"]
34+
rustdoc-args = ["--cfg", "rustls_pki_types_docsrs"]
3235

3336
[package.metadata.cargo_check_external_types]
3437
allowed_external_types = ["zeroize::Zeroize"]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
#![cfg_attr(not(feature = "std"), no_std)]
6464
#![warn(unreachable_pub, clippy::use_self)]
6565
#![deny(missing_docs)]
66-
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
66+
#![cfg_attr(rustls_pki_types_docsrs, feature(doc_cfg, doc_auto_cfg))]
6767

6868
#[cfg(feature = "alloc")]
6969
extern crate alloc;

0 commit comments

Comments
 (0)