Skip to content

Commit fdcf41f

Browse files
committed
Enable doc_cfg feature on docs.rs
1 parent 9c58cfb commit fdcf41f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ string_to_string = "warn"
3939
cast_possible_wrap = { level = "allow", priority = 1 }
4040
cast_possible_truncation = { level = "allow", priority = 1 }
4141

42+
[package.metadata.docs.rs]
43+
all-features = true
44+
rustdoc-args = ["--cfg", "docsrs"]
45+
4246
[features]
4347
tokio = ["dep:tokio", "futures"]
4448
# Experimental and somewhat incomplete

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//! incomplete.
1616
1717
#![forbid(unsafe_code)]
18+
#![cfg_attr(docsrs, feature(doc_cfg))]
1819

1920
// TODO split up
2021

0 commit comments

Comments
 (0)