Skip to content

Commit c7a66cc

Browse files
authored
Remove use of doc(cfg(...)) and the docsrs configuration (#282)
The documentation build for the crate on docs.rs has been failing with an error that `doc(cfg(...))` is an experimental feature. Instead of fixing this, this changeset removes the only use of the feature from the `GenericTcpStream` enumeration, which is internal and does not show in documentation anyway.
1 parent cf310f2 commit c7a66cc

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ categories = ["network-programming"]
1111
readme = "README.md"
1212

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

1716
[workspace]

src/client/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ mod metrics;
8484
mod options;
8585
mod task;
8686

87-
#[cfg_attr(docsrs, doc(cfg(feature = "tokio-stream")))]
8887
#[pin_project(project = StreamProj)]
8988
#[derive(Debug)]
9089
pub enum GenericTcpStream {

src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@
7171
//! ```
7272
//! For more consumer options check [`ConsumerBuilder`]
7373
74-
#![cfg_attr(docsrs, feature(doc_cfg))]
75-
7674
mod byte_capacity;
7775
mod client;
7876
mod consumer;

0 commit comments

Comments
 (0)