Skip to content

Commit

Permalink
transports/quic: follow libp2p#2983
Browse files Browse the repository at this point in the history
  • Loading branch information
elenaf9 committed Oct 16, 2022
1 parent 4325f5c commit 3982a6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions transports/quic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ yasna = "0.5.0"
tokio = ["dep:tokio-crate"]
async-std = ["dep:async-std-crate"]

# Passing arguments to the docsrs builder in order to properly document cfg's.
# More information: https://docs.rs/about/builds#cross-compiling
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
rustc-args = ["--cfg", "docsrs"]

[dev-dependencies]
async-std-crate = { package = "async-std", version = "1.12.0", features = ["attributes"] }
libp2p = { path = "../..", features = ["request-response"] }
Expand Down
2 changes: 2 additions & 0 deletions transports/quic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
//! Instead, you must pass all needed configuration into the constructor.
//!

#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

mod connection;
mod endpoint;
mod error;
Expand Down

0 comments on commit 3982a6c

Please sign in to comment.