Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid duplicate crates #832

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,33 @@ resolver = "2"
version = "0.18.1" # VERSION
rust-version = "1.78"

[workspace.dependencies]
ast = { path = "ast" }
backtrace = "0.3"
blake3 = "1.5"
compiler = { path = "compiler" }
crossbeam-queue = "0.3"
crossbeam-utils = "0.8"
flate2 = "1.0"
fnv = "1.0"
getopts = "0.2"
indexmap = "2.6"
inkwell = "0.5"
libc = "0.2"
llvm-sys-170 = "170.2"
location = { path = "location" }
once_cell = "1.9"
rand = "0.8"
rustix = { version = "0.38", default-features = false }
rustls = { version = "0.23", default-features = false }
rustls-pemfile = "2.1"
similar-asserts = "1.1"
tar = { version = "0.4", default-features = false }
types = { path = "types" }
unicode-segmentation = "1.10"
unicode-width = "0.2"
ureq = "3.0"

[profile.release]
panic = "abort"

Expand Down
6 changes: 3 additions & 3 deletions ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ rust-version.workspace = true
doctest = false

[dependencies]
unicode-segmentation = "^1.8"
location = { path = "../location" }
unicode-segmentation = { workspace = true }
location = { workspace = true }

[dev-dependencies]
similar-asserts = "^1.1"
similar-asserts = { workspace = true }
20 changes: 10 additions & 10 deletions compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ rust-version.workspace = true
doctest = false

[dependencies]
ast = { path = "../ast" }
types = { path = "../types" }
location = { path = "../location" }
unicode-width = "^0.2"
fnv = "^1.0"
blake3 = "^1.5"
inkwell = { version = "^0.5", features = ["llvm17-0"] }
ast = { workspace = true }
types = { workspace = true }
location = { workspace = true }
unicode-width = { workspace = true }
fnv = { workspace = true }
blake3 = { workspace = true }
inkwell = { workspace = true, features = ["llvm17-0"] }
llvm-sys-170 = { package = "llvm-sys", version = "^170.2", features = ["prefer-static"] }
indexmap = "^2.6"
crossbeam-queue = "^0.3"
indexmap = { workspace = true }
crossbeam-queue = { workspace = true }

[dev-dependencies]
similar-asserts = "^1.1"
similar-asserts = { workspace = true }
14 changes: 7 additions & 7 deletions inko/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ license = "MPL-2.0"
rust-version.workspace = true

[dependencies]
getopts = "^0.2"
compiler = { path = "../compiler" }
types = { path = "../types" }
ureq = { version = "^3.0" }
flate2 = "^1.0"
tar = { version = "^0.4", default-features = false }
blake3 = "^1.5"
getopts = { workspace = true }
compiler = { workspace = true }
types = { workspace = true }
ureq = { workspace = true }
flate2 = { workspace = true }
tar = { workspace = true }
blake3 = { workspace = true }
20 changes: 10 additions & 10 deletions rt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ doctest = false
crate-type = ["staticlib", "lib"]

[dependencies]
crossbeam-utils = "^0.8"
crossbeam-queue = "^0.3"
crossbeam-utils = { workspace = true }
crossbeam-queue = { workspace = true }

# We use rustix where possible, but as it doesn't offer support for everything
# (e.g. signal management) we still need to use libc in those cases.
libc = "^0.2"
rand = { version = "^0.8", features = ["default", "small_rng"] }
unicode-segmentation = "^1.10"
backtrace = "^0.3"
rustix = { version = "^0.38", features = ["mm", "param", "process", "std", "event"], default-features = false }
libc = { workspace = true }
rand = { workspace = true, features = ["default", "small_rng"] }
unicode-segmentation = { workspace = true }
backtrace = { workspace = true }
rustix = { workspace = true, features = ["mm", "param", "process", "std", "event"] }

# The dependencies needed for TLS support.
#
Expand All @@ -33,15 +33,15 @@ rustix = { version = "^0.38", features = ["mm", "param", "process", "std", "even
# bindings for a limited set of platforms
# 2. aws-lc-sys increases compile times quite a bit
# 3. We don't care about FIPS compliance at the time of writing
rustls = { version = "^0.23", features = ["ring", "tls12", "std"], default-features = false }
rustls-pemfile = "^2.1"
rustls = { workspace = true, features = ["ring", "tls12", "std"] }
rustls-pemfile = { workspace = true }

# These dependencies are used by the customized version of
# rustls-platform-modifier. We include a custom version so we can deal with the
# platform verification process being potentially slow. See
# https://github.com/rustls/rustls/issues/850 and
# https://github.com/inko-lang/inko/issues/329 for more details.
once_cell = "1.9"
once_cell = { workspace = true }

[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
rustls-native-certs = "0.7"
Expand Down
4 changes: 2 additions & 2 deletions types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ rust-version.workspace = true
doctest = false

[dependencies]
location = { path = "../location" }
indexmap = "^2.6"
location = { workspace = true }
indexmap = { workspace = true }