Skip to content

Commit 7b3c4eb

Browse files
authored
docs(http-body-util): show cfgs (#151)
1 parent ad4a9c9 commit 7b3c4eb

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

http-body-util/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ tokio = { version = "1", features = ["sync"], optional = true }
4444
[dev-dependencies]
4545
futures-util = { version = "0.3", default-features = false }
4646
tokio = { version = "1", features = ["macros", "rt", "sync", "rt-multi-thread"] }
47+
48+
[package.metadata.docs.rs]
49+
all-features = true
50+
rustdoc-args = ["--cfg", "docsrs"]

http-body-util/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![deny(missing_debug_implementations, missing_docs, unreachable_pub)]
22
#![cfg_attr(test, deny(warnings))]
3+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
34

45
//! Utilities for [`http_body::Body`].
56
//!

0 commit comments

Comments
 (0)