Skip to content

Commit

Permalink
use workspace dependencies for tower
Browse files Browse the repository at this point in the history
Closes #776
  • Loading branch information
GlenDC committed Jul 22, 2024
1 parent 74e925d commit a31e211
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 31 deletions.
20 changes: 20 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,23 @@ members = [
"tower-service",
"tower-test",
]

[workspace.dependencies]
futures = "0.3"
futures-core = "0.3"
futures-util = { version = "0.3", default-features = false }
hdrhistogram = { version = "7.0", default-features = false }
http = "0.2"
indexmap = "2.0.2"
lazy_static = "1.4.0"
pin-project-lite = "0.2.7"
quickcheck = "1"
rand = "0.8"
slab = "0.4"
sync_wrapper = "0.1.1"
tokio = "1.6.2"
tokio-stream = "0.1.0"
tokio-test = "0.4"
tokio-util = { version = "0.7.0", default-features = false }
tracing = { version = "0.1.2", default-features = false }
tracing-subscriber = { version = "0.3", default-features = false }
6 changes: 3 additions & 3 deletions tower-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ edition = "2018"
[dependencies]

[dev-dependencies]
http = "0.2"
http = { workspace = true }
tower-layer = { version = "0.3", path = "../tower-layer" }
tokio = { version = "1", features = ["macros", "time"] }
futures = "0.3"
tokio = { workspace = true, features = ["macros", "time"] }
futures = { workspace = true }
10 changes: 5 additions & 5 deletions tower-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ categories = ["asynchronous", "network-programming"]
edition = "2018"

[dependencies]
futures-util = { version = "0.3", default-features = false }
tokio = { version = "1.0", features = ["sync"] }
tokio-test = "0.4"
futures-util = { workspace = true }
tokio = { workspace = true, features = ["sync"] }
tokio-test = { workspace = true }
tower-layer = { version = "0.3", path = "../tower-layer" }
tower-service = { version = "0.3", path = "../tower-service" }
pin-project-lite = "0.2"
pin-project-lite = { workspace = true }

[dev-dependencies]
tokio = { version = "1.0", features = ["macros"] }
tokio = { workspace = true, features = ["macros"] }
46 changes: 23 additions & 23 deletions tower/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,32 +68,32 @@ util = ["__common", "futures-util", "pin-project-lite", "sync_wrapper"]
tower-layer = { version = "0.3.1", path = "../tower-layer" }
tower-service = { version = "0.3.1", path = "../tower-service" }

futures-core = { version = "0.3", optional = true }
futures-util = { version = "0.3", default-features = false, features = ["alloc"], optional = true }
hdrhistogram = { version = "7.0", optional = true, default-features = false }
indexmap = { version = "2.0.2", optional = true }
slab = { version = "0.4", optional = true }
tokio = { version = "1.6", optional = true, features = ["sync"] }
tokio-stream = { version = "0.1.0", optional = true }
tokio-util = { version = "0.7.0", default-features = false, optional = true }
tracing = { version = "0.1.2", default-features = false, features = ["std"], optional = true }
pin-project-lite = { version = "0.2.7", optional = true }
sync_wrapper = { version = "0.1.1", optional = true }
futures-core = { workspace = true, optional = true }
futures-util = { workspace = true, features = ["alloc"], optional = true }
hdrhistogram = { workspace = true, optional = true }
indexmap = { workspace = true, optional = true }
slab = { workspace = true, optional = true }
tokio = { workspace = true, features = ["sync"], optional = true }
tokio-stream = { workspace = true, optional = true }
tokio-util = { workspace = true, optional = true }
tracing = { workspace = true, features = ["std"], optional = true }
pin-project-lite = { workspace = true, optional = true }
sync_wrapper = { workspace = true, optional = true }

[dev-dependencies]
futures = "0.3"
hdrhistogram = { version = "7.0", default-features = false }
pin-project-lite = "0.2.7"
tokio = { version = "1.6.2", features = ["macros", "sync", "test-util", "rt-multi-thread"] }
tokio-stream = "0.1"
tokio-test = "0.4"
futures = { workspace = true }
hdrhistogram = { workspace = true }
pin-project-lite = { workspace = true }
tokio = { workspace = true, features = ["macros", "sync", "test-util", "rt-multi-thread"] }
tokio-stream = { workspace = true }
tokio-test = { workspace = true }
tower-test = { version = "0.4", path = "../tower-test" }
tracing = { version = "0.1.2", default-features = false, features = ["std"] }
tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt", "ansi"] }
http = "0.2"
lazy_static = "1.4.0"
rand = { version = "0.8", features = ["small_rng"] }
quickcheck = "1"
tracing = { workspace = true, features = ["std"] }
tracing-subscriber = { workspace = true, features = ["fmt", "ansi"] }
http = { workspace = true }
lazy_static = { workspace = true }
rand = { workspace = true, features = ["small_rng"] }
quickcheck = { workspace = true }

[package.metadata.docs.rs]
all-features = true
Expand Down

0 comments on commit a31e211

Please sign in to comment.