Skip to content

Commit c7a8371

Browse files
committed
docs: fix feature attributes
This is so the available features show up correctly on docs.rs.
1 parent 50e0c7a commit c7a8371

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rustdoc-args = ["--cfg", "feature=\"docs\""]
2121

2222
[features]
2323
default = ["h1_client"]
24-
docs = ["h1_client"]
24+
docs = ["h1_client", "curl_client", "wasm_client", "hyper_client"]
2525
h1_client = ["async-h1", "async-std", "async-native-tls"]
2626
h1_client_rustls = ["async-h1", "async-std", "async-tls"]
2727
native_client = ["curl_client", "wasm_client"]

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub mod wasm;
2727
pub mod native;
2828

2929
#[cfg_attr(feature = "docs", doc(cfg(h1_client)))]
30+
#[cfg_attr(feature = "docs", doc(cfg(default)))]
3031
#[cfg(any(feature = "h1_client", feature = "h1_client_rustls"))]
3132
pub mod h1;
3233

0 commit comments

Comments
 (0)