Skip to content

Commit 61fb02c

Browse files
authored
Fix doc build failed (#280)
1 parent 198e58f commit 61fb02c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ categories = ["network-programming"]
1111
readme = "README.md"
1212

1313
[package.metadata."docs.rs"]
14+
rustdoc-args = ["--cfg", "docsrs"]
1415
all-features = true
1516

1617
[workspace]

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
//! ```
7272
//! For more consumer options check [`ConsumerBuilder`]
7373
74+
#![cfg_attr(docsrs, feature(doc_cfg))]
75+
7476
mod byte_capacity;
7577
mod client;
7678
mod consumer;

0 commit comments

Comments
 (0)