Skip to content

Commit

Permalink
Remove warp examples
Browse files Browse the repository at this point in the history
Warp is much less popular than Axum today - 30,000 downloads/day on crates.io vs Axum's 200,000/day, as a rough quantiative measure.

As well, warp does not yet have compatiblity with hyper-1.0, though there is some work ongoing (seanmonstar/warp#1088).

When warp adds compatibility with hyper 1.0, these examples can be restored.
  • Loading branch information
alexrudy committed May 26, 2024
1 parent a0159d3 commit 63407fd
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 412 deletions.
26 changes: 1 addition & 25 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,6 @@ path = "src/interceptor/client.rs"
name = "interceptor-server"
path = "src/interceptor/server.rs"

[[bin]]
name = "hyper-warp-client"
path = "src/hyper_warp/client.rs"
required-features = ["hyper-warp"]

[[bin]]
name = "hyper-warp-server"
path = "src/hyper_warp/server.rs"
required-features = ["hyper-warp"]

[[bin]]
name = "health-server"
path = "src/health/server.rs"
Expand All @@ -178,16 +168,6 @@ required-features = ["autoreload"]
name = "optional-server"
path = "src/optional/server.rs"

[[bin]]
name = "hyper-warp-multiplex-client"
path = "src/hyper_warp_multiplex/client.rs"
required-features = ["hyper-warp-multiplex"]

[[bin]]
name = "hyper-warp-multiplex-server"
path = "src/hyper_warp_multiplex/server.rs"
required-features = ["hyper-warp-multiplex"]

[[bin]]
name = "compression-server"
path = "src/compression/server.rs"
Expand Down Expand Up @@ -293,8 +273,6 @@ autoreload = ["tokio-stream/net", "dep:listenfd"]
health = ["dep:tonic-health"]
grpc-web = ["dep:tonic-web", "dep:bytes", "dep:http", "dep:hyper", "dep:tracing-subscriber", "dep:tower"]
tracing = ["dep:tracing", "dep:tracing-subscriber"]
hyper-warp = ["dep:either", "dep:tower", "dep:hyper", "dep:http", "dep:http-body", "dep:warp"]
hyper-warp-multiplex = ["hyper-warp"]
uds = ["tokio-stream/net", "dep:tower", "dep:hyper"]
streaming = ["tokio-stream", "dep:h2"]
mock = ["tokio-stream", "dep:tower"]
Expand All @@ -310,7 +288,7 @@ types = ["dep:tonic-types"]
h2c = ["dep:hyper", "dep:tower", "dep:http"]
cancellation = ["dep:tokio-util"]

full = ["gcp", "routeguide", "reflection", "autoreload", "health", "grpc-web", "tracing", "hyper-warp", "hyper-warp-multiplex", "uds", "streaming", "mock", "tower", "json-codec", "compression", "tls", "tls-rustls", "dynamic-load-balance", "timeout", "tls-client-auth", "types", "cancellation", "h2c"]
full = ["gcp", "routeguide", "reflection", "autoreload", "health", "grpc-web", "tracing", "uds", "streaming", "mock", "tower", "json-codec", "compression", "tls", "tls-rustls", "dynamic-load-balance", "timeout", "tls-client-auth", "types", "cancellation", "h2c"]
default = ["full"]

[dependencies]
Expand All @@ -323,7 +301,6 @@ tonic-web = { path = "../tonic-web", optional = true }
tonic-health = { path = "../tonic-health", optional = true }
tonic-reflection = { path = "../tonic-reflection", optional = true }
tonic-types = { path = "../tonic-types", optional = true }
either = { version = "1.9", optional = true }
async-stream = { version = "0.3", optional = true }
tokio-stream = { version = "0.1", optional = true }
tokio-util = { version = "0.7.8", optional = true }
Expand All @@ -337,7 +314,6 @@ prost-types = { version = "0.12", optional = true }
http = { version = "0.2", optional = true }
http-body = { version = "0.4.2", optional = true }
hyper = { version = "0.14", optional = true }
warp = { version = "0.3.4", default-features = false, optional = true }
listenfd = { version = "1.0", optional = true }
bytes = { version = "1", optional = true }
h2 = { version = "0.3", optional = true }
Expand Down
47 changes: 0 additions & 47 deletions examples/src/hyper_warp/client.rs

This file was deleted.

126 changes: 0 additions & 126 deletions examples/src/hyper_warp/server.rs

This file was deleted.

61 changes: 0 additions & 61 deletions examples/src/hyper_warp_multiplex/client.rs

This file was deleted.

0 comments on commit 63407fd

Please sign in to comment.