Skip to content

Commit 3982a6c

Browse files
committed
transports/quic: follow libp2p#2983
1 parent 4325f5c commit 3982a6c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

transports/quic/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ yasna = "0.5.0"
3232
tokio = ["dep:tokio-crate"]
3333
async-std = ["dep:async-std-crate"]
3434

35+
# Passing arguments to the docsrs builder in order to properly document cfg's.
36+
# More information: https://docs.rs/about/builds#cross-compiling
37+
[package.metadata.docs.rs]
38+
all-features = true
39+
rustdoc-args = ["--cfg", "docsrs"]
40+
rustc-args = ["--cfg", "docsrs"]
41+
3542
[dev-dependencies]
3643
async-std-crate = { package = "async-std", version = "1.12.0", features = ["attributes"] }
3744
libp2p = { path = "../..", features = ["request-response"] }

transports/quic/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
//! Instead, you must pass all needed configuration into the constructor.
5656
//!
5757
58+
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
59+
5860
mod connection;
5961
mod endpoint;
6062
mod error;

0 commit comments

Comments
 (0)