Skip to content

Commit 7d0e8bb

Browse files
committed
feat(pool): add a Negotiate pooling service
1 parent 7fafc66 commit 7d0e8bb

File tree

3 files changed

+542
-2
lines changed

3 files changed

+542
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pin-project-lite = "0.2.4"
3333
socket2 = { version = ">=0.5.9, <0.7", optional = true, features = ["all"] }
3434
tracing = { version = "0.1", default-features = false, features = ["std"], optional = true }
3535
tokio = { version = "1", optional = true, default-features = false }
36+
tower-layer = { version = "0.3", optional = true }
3637
tower-service = { version = "0.3", optional = true }
3738

3839
[dev-dependencies]
@@ -55,7 +56,7 @@ system-configuration = { version = "0.6.1", optional = true }
5556
windows-registry = { version = "0.5", optional = true }
5657

5758
[features]
58-
default = []
59+
default = ["client", "client-pool"]
5960

6061
# Shorthand to enable everything
6162
full = [
@@ -76,7 +77,7 @@ full = [
7677

7778
client = ["hyper/client", "tokio/net", "dep:tracing", "dep:futures-channel", "dep:tower-service"]
7879
client-legacy = ["client", "dep:socket2", "tokio/sync", "dep:libc", "dep:futures-util"]
79-
client-pool = ["dep:futures-util"]
80+
client-pool = ["dep:futures-util", "dep:tower-layer"]
8081
client-proxy = ["client", "dep:base64", "dep:ipnet", "dep:percent-encoding"]
8182
client-proxy-system = ["dep:system-configuration", "dep:windows-registry"]
8283

src/client/pool/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Composable pool services
22
33
pub mod cache;
4+
pub mod negotiate;
45
mod singleton;
56

67
pub use self::singleton::Singleton;

0 commit comments

Comments
 (0)