Skip to content

Commit

Permalink
Migrates to using workspace dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
SirCipher committed May 22, 2024
1 parent 525f863 commit 45aaf0c
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 37 deletions.
26 changes: 25 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,28 @@ members = [
"ratchet_deflate",
"ratchet_ext",
"ratchet_fixture"
]
]

[workspace.dependencies]
url = "2.1.1"
http = "1.1.0"
tokio = "1.1.1"
tokio-util = "0.7.11"
tokio-stream = "0.1.4"
futures = "0.3.4"
futures-util = "0.3.4"
derive_more = "0.99.14"
thiserror = "1.0"
bytes = "1.0"
rand = "0.8"
sha-1 = "0.10"
base64 = "0.13"
httparse = "1.4.1"
fnv = "1.0.3"
bitflags = "1.2"
either = "1.5.3"
log = "0.4.14"
flate2 = "1.0"
anyhow = "1.0"
serde_json = "1.0"
tracing-subscriber = "0.3.18"
41 changes: 20 additions & 21 deletions ratchet_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,29 @@ repository = "https://github.com/swimos/ratchet/ratchet_core"

[features]
default = []
split = ["futures", "futures-util"]
split = ["futures"]
fixture = []

[dependencies]
ratchet_ext = { version = "0.4.2", path = "../ratchet_ext" }
url = "2.1.1"
http = "1.1.0"
tokio = { version = "1.1.1", features = ["rt", "net", "io-util"] }
tokio-util = { version = "0.7.11", features = ["codec"] }
futures = { version = "0.3.4", optional = true }
futures-util = { version = "0.3.4", optional = true }
derive_more = "0.99.14"
thiserror = "1.0"
bytes = "1.0"
rand = { version = "0.8", features = ["std", "small_rng", "getrandom"] }
sha-1 = "0.10"
base64 = "0.13"
httparse = "1.4.1"
fnv = "1.0.3"
bitflags = "1.2"
either = "1.5.3"
log = "0.4.14"
url = { workspace = true }
http = { workspace = true }
tokio = { workspace = true, features = ["rt", "net", "io-util"] }
tokio-util = { workspace = true, features = ["codec", "compat"] }
futures = { workspace = true, optional = true }
derive_more = { workspace = true }
thiserror = { workspace = true }
bytes = { workspace = true }
rand = { workspace = true, features = ["std", "small_rng", "getrandom"] }
sha-1 = { workspace = true }
base64 = { workspace = true }
httparse = { workspace = true }
fnv = { workspace = true }
bitflags = { workspace = true }
either = { workspace = true }
log = { workspace = true }

[dev-dependencies]
tokio = { version = "1.1.1", features = ["rt-multi-thread", "macros", "test-util"] }
futures = "0.3.4"
futures-util = "0.3.4"
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "test-util"] }
futures = { workspace = true }
futures-util = { workspace = true }
10 changes: 5 additions & 5 deletions ratchet_deflate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ repository = "https://github.com/swimos/ratchet/"

[dependencies]
ratchet_ext = { version = "0.4.2", path = "../ratchet_ext" }
thiserror = "1.0"
http = "1.1.0"
bytes = "1.0"
flate2 = { version = "1.0", default-features = false, features = ["zlib"] }
log = "0.4.14"
thiserror = { workspace = true }
http = { workspace = true }
bytes = { workspace = true }
flate2 = { workspace = true, default-features = false, features = ["zlib"] }
log = { workspace = true }
6 changes: 3 additions & 3 deletions ratchet_ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ readme = "README.md"
repository = "https://github.com/swimos/ratchet/"

[dependencies]
http = "1.1.0"
httparse = "1.4.1"
bytes = "1.0"
http = { workspace = true }
httparse = { workspace = true }
bytes = { workspace = true }
8 changes: 4 additions & 4 deletions ratchet_fixture/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ repository = "https://github.com/swimos/ratchet/"

[dependencies]
ratchet = { package = "ratchet_rs", version = "0.4.2", path = "../ratchet_rs", features = ["split", "deflate", "fixture"] }
tokio = { version = "1.1.1", features = ["io-util"] }
bytes = "1.0"
futures = "0.3.4"
tokio = { workspace = true, features = ["io-util"] }
bytes = { workspace = true }
futures = { workspace = true }

[dev-dependencies]
tokio = { version = "1.1.1", features = ["rt-multi-thread", "macros", "test-util"] }
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "test-util"] }
8 changes: 5 additions & 3 deletions ratchet_rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ fixture = ["ratchet_core/fixture"]
ratchet_core = { version = "0.4.2", path = "../ratchet_core" }
ratchet_ext = { version = "0.4.2", path = "../ratchet_ext" }
ratchet_deflate = { version = "0.4.2", path = "../ratchet_deflate", optional = true }
tracing-subscriber = { workspace = true, features = ["env-filter"] }
log = { workspace = true }

[dev-dependencies]
tokio = { version = "1.1.1", features = ["rt-multi-thread", "macros", "test-util"] }
tokio-stream = { version = "0.1.4", features = ["net"] }
bytes = "1.0"
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "test-util"] }
tokio-stream = { workspace = true, features = ["net"] }
bytes = { workspace = true }

[[example]]
name = "autobahn-client"
Expand Down

0 comments on commit 45aaf0c

Please sign in to comment.