Skip to content

Commit a2138ea

Browse files
committed
fix(http): clean up feature flags
1 parent 932a184 commit a2138ea

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

crates/http/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ http2 = [
6161
]
6262
## Enables http3 support
6363
http3 = ["dep:quinn", "dep:h3-quinn", "dep:h3"]
64-
## Enables WebTransport over HTTP/3 support (enables http3)
65-
webtransport = ["http3", "dep:h3-webtransport", "dep:h3-datagram", "h3-quinn/datagram"]
64+
## Enables WebTransport over HTTP/3 support
65+
webtransport = ["dep:h3-webtransport", "dep:h3-datagram", "h3-quinn?/datagram"]
6666
## Enables tls via rustls
6767
tls-rustls = ["dep:tokio-rustls"]
6868
## Alias for ["http3", "tls-rustls"]

crates/http/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
#[cfg(all(feature = "http3", not(feature = "tls-rustls")))]
6262
compile_error!("feature \"tls-rustls\" must be enabled when \"http3\" is enabled.");
6363

64+
#[cfg(all(feature = "webtransport", not(feature = "http3")))]
65+
compile_error!("feature \"http3\" must be enabled when \"webtransport\" is enabled.");
66+
6467
#[cfg(any(feature = "http1", feature = "http2", feature = "http3"))]
6568
pub mod backend;
6669
pub mod body;

vendor/cargo/defs.bzl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,6 @@ _NORMAL_DEPENDENCIES = {
946946
"webtransport": {
947947
_COMMON_CONDITION: {
948948
"h3-datagram": Label("@cargo_vendor//:h3-datagram-0.0.2"),
949-
"h3-quinn": Label("@cargo_vendor//:h3-quinn-0.0.10"),
950949
"h3-webtransport": Label("@cargo_vendor//:h3-webtransport-0.1.2"),
951950
},
952951
},
@@ -4366,7 +4365,6 @@ _FEATURE_FLAGS = {
43664365
"tracing": [
43674366
],
43684367
"webtransport": [
4369-
"http3",
43704368
],
43714369
},
43724370
"crates/metrics": {

0 commit comments

Comments
 (0)