diff --git a/Cargo.toml b/Cargo.toml index 684d8cd5..be89567c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ categories = ["network-programming"] readme = "README.md" [package.metadata."docs.rs"] +rustdoc-args = ["--cfg", "docsrs"] all-features = true [workspace] diff --git a/src/lib.rs b/src/lib.rs index d6633b00..e460fd37 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,6 +71,8 @@ //! ``` //! For more consumer options check [`ConsumerBuilder`] +#![cfg_attr(docsrs, feature(doc_cfg))] + mod byte_capacity; mod client; mod consumer;