Skip to content

Commit

Permalink
refactor: share versions across crates and allow outdated windows-sys (
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcsmith authored Dec 1, 2023
1 parent 1f523b4 commit f0d63d0
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ members = [
"crates/scion-grpc",
"crates/scion-proto",
]

[workspace.dependencies]
bytes = "1.5.0"
prost = "0.12"
prost-types = "0.12"
scion-grpc = { version = "0.1.0", path = "crates/scion-grpc" }
thiserror = "1.0.50"
tonic = "0.10"
tonic-build = "0.10"
tracing = "0.1.40"
8 changes: 4 additions & 4 deletions crates/scion-grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ license = "Apache-2.0"
publish = false

[dependencies]
prost = "0.12.1"
prost-types = "0.12.1"
tonic = "0.10.2"
prost = { workspace = true }
prost-types = { workspace = true }
tonic = { workspace = true }

[build-dependencies]
tonic-build = "0.10.2"
tonic-build = { workspace = true }
10 changes: 5 additions & 5 deletions crates/scion-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ license = "Apache-2.0"
publish = false

[dependencies]
bytes = "1.5.0"
bytes = { workspace = true }
chrono = { version = "0.4.31", default-features = false }
scion-grpc = { version = "0.1.0", path = "../scion-grpc" }
scion-grpc = { workspace = true }
serde = { version = "1.0.188", features = ["derive"] }
thiserror = "1.0.48"
tracing = "0.1.40"
thiserror = { workspace = true }
tracing = { workspace = true }

[dev-dependencies]
prost-types = "0.12.2"
prost-types = { workspace = true }
10 changes: 5 additions & 5 deletions crates/scion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ license = "Apache-2.0"
publish = false

[dependencies]
bytes = "1.5.0"
scion-grpc = { version = "0.1.0", path = "../scion-grpc" }
bytes = { workspace = true }
scion-grpc = { workspace = true }
scion-proto = { version = "0.1.0", path = "../scion-proto" }
thiserror = "1.0.50"
thiserror = { workspace = true }
tokio = { version = "1.34.0", features = ["rt-multi-thread", "macros"] }
tonic = "0.10.2"
tracing = "0.1.40"
tonic = { workspace = true }
tracing = { workspace = true }

[dev-dependencies]
tracing-subscriber = "0.3.17"
2 changes: 2 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ skip = [
# axum + redox_syscall use an old version
{ name = "bitflags", version = "=1.3.2" },
]
# Several crates depend on an older version of windows-sys
skip-tree = [{ name = "windows-sys", depth = 3, version = "0.48"}]

# This section is considered when running `cargo deny check sources`.
# More documentation about the 'sources' section can be found here:
Expand Down

0 comments on commit f0d63d0

Please sign in to comment.