diff --git a/Cargo.lock b/Cargo.lock index e7718da8d8..2ebad799e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3378,7 +3378,6 @@ name = "roc_glue" version = "0.0.1" dependencies = [ "bumpalo", - "clap 3.2.20", "cli_utils", "dircpy", "fnv", diff --git a/Cargo.toml b/Cargo.toml index 14154895c7..74483091f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -110,15 +110,12 @@ snafu = { version = "0.7.1", features = ["backtraces"] } static_assertions = "1.1.0" strip-ansi-escapes = "0.1.1" strum = { version = "0.24.1", features = ["derive"] } +strum_macros = "0.24.1" target-lexicon = "0.12.3" tempfile = "3.2.0" unicode-segmentation = "1.10.0" walkdir = "2.3.2" wyhash = "0.5.0" - -# TODO: Deal with the update of object to 0.27. -# It looks like it breaks linking the generated objects. -# Probably just need to specify an extra field that used to be implicit or something. object = { version = "0.29.0", features = ["read", "write"] } # Optimizations based on https://deterministic.space/high-performance-rust.html diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 6d005614b6..f1f55b4d00 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -89,14 +89,15 @@ roc_repl_expect = { path = "../repl_expect" } [dev-dependencies] -pretty_assertions = "1.3.0" roc_test_utils = { path = "../test_utils" } roc_utils = { path = "../utils" } indoc = "1.0.7" serial_test = "0.9.0" -criterion = { git = "https://github.com/Anton-4/criterion.rs"} cli_utils = { path = "../cli_utils" } -parking_lot = "0.12" + +criterion.workspace = true +parking_lot.workspace = true +pretty_assertions.workspace = true [[bench]] name = "time_bench" diff --git a/crates/code_markup/Cargo.toml b/crates/code_markup/Cargo.toml index d8d63f7a4a..ef299d127a 100644 --- a/crates/code_markup/Cargo.toml +++ b/crates/code_markup/Cargo.toml @@ -10,7 +10,9 @@ description = "Our own markup language for Roc code. Used by the editor and the roc_ast = { path = "../ast" } roc_module = { path = "../compiler/module" } roc_utils = { path = "../utils" } -serde = { version = "1.0.144", features = ["derive"] } palette = "0.6.1" -snafu = { version = "0.7.1", features = ["backtraces"] } -bumpalo = { version = "3.11.1", features = ["collections"] } + +bumpalo.workspace = true +serde.workspace = true +snafu.workspace = true + diff --git a/crates/compiler/constrain/Cargo.toml b/crates/compiler/constrain/Cargo.toml index a830ac3f37..fbaf7f4818 100644 --- a/crates/compiler/constrain/Cargo.toml +++ b/crates/compiler/constrain/Cargo.toml @@ -15,4 +15,5 @@ roc_parse = { path = "../parse" } roc_problem = { path = "../problem" } roc_types = { path = "../types" } roc_can = { path = "../can" } -arrayvec = "0.7.2" + +arrayvec.workspace = true diff --git a/crates/compiler/region/Cargo.toml b/crates/compiler/region/Cargo.toml index b67e5a44c2..b91ee6f8c3 100644 --- a/crates/compiler/region/Cargo.toml +++ b/crates/compiler/region/Cargo.toml @@ -7,4 +7,4 @@ edition = "2021" description = "Data structures for storing source-code-location information, used heavily for contextual error messages." [dependencies] -static_assertions = "1.1.0" +static_assertions.workspace = true diff --git a/crates/compiler/roc_target/Cargo.toml b/crates/compiler/roc_target/Cargo.toml index 76325d052b..e6889cbd31 100644 --- a/crates/compiler/roc_target/Cargo.toml +++ b/crates/compiler/roc_target/Cargo.toml @@ -7,6 +7,7 @@ edition = "2021" description = "Provides types and helpers for compiler targets such as default_x86_64." [dependencies] -target-lexicon = "0.12.3" -strum = "0.24.0" -strum_macros = "0.24" + +strum.workspace = true +strum_macros.workspace = true +target-lexicon.workspace = true diff --git a/crates/editor/Cargo.toml b/crates/editor/Cargo.toml index 6cff04153d..c393b2dca7 100644 --- a/crates/editor/Cargo.toml +++ b/crates/editor/Cargo.toml @@ -33,10 +33,6 @@ roc_packaging = { path = "../packaging" } roc_reporting = { path = "../reporting" } roc_solve = { path = "../compiler/solve" } ven_graph = { path = "../vendor/pathfinding" } -bumpalo = { version = "3.11.1", features = ["collections"] } -arrayvec = "0.7.2" -libc = "0.2.135" -page_size = "0.4.2" # once winit 0.26 is out, check if copypasta can be updated simultaneously so they use the same versions for their dependencies. This will save build time. winit = "0.26.0" wgpu = "0.12.0" @@ -45,7 +41,6 @@ glyph_brush = "0.7.5" log = "0.4.14" futures = "0.3.24" cgmath = "0.18.0" -snafu = { version = "0.7.1", features = ["backtraces"] } colored = "2.0.0" pest = "2.3.1" pest_derive = "2.3.1" @@ -54,11 +49,16 @@ palette = "0.6.1" confy = { git = 'https://github.com/rust-cli/confy', features = [ "yaml_conf" ], default-features = false } -serde = { version = "1.0.144", features = ["derive"] } nonempty = "0.8.0" threadpool = "1.8.1" +arrayvec.workspace = true +bumpalo.workspace = true fs_extra.workspace = true +libc.workspace = true +page_size.workspace = true +serde.workspace = true +snafu.workspace = true [dependencies.bytemuck] version = "1.12.1" @@ -66,5 +66,6 @@ features = ["derive"] [dev-dependencies] rand = "0.8.4" -tempfile = "3.2.0" uuid = { version = "1.1.2", features = ["v4"] } + +tempfile.workspace = true diff --git a/crates/glue/Cargo.toml b/crates/glue/Cargo.toml index 4875926f93..b442eec7c4 100644 --- a/crates/glue/Cargo.toml +++ b/crates/glue/Cargo.toml @@ -20,17 +20,18 @@ roc_collections = { path = "../compiler/collections" } roc_target = { path = "../compiler/roc_target" } roc_error_macros = { path = "../error_macros" } roc_tracing = { path = "../tracing" } -bumpalo = { version = "3.11.1", features = ["collections"] } -target-lexicon = "0.12.3" -clap = { version = "3.2.20", default-features = false, features = ["std", "color", "suggestions", "derive"] } -strum = "0.24.0" -strum_macros = "0.24" indexmap = "1.8.1" -fnv = "1.0.7" + +bumpalo.workspace = true +fnv.workspace = true +strum.workspace = true +strum_macros.workspace = true +target-lexicon.workspace = true [dev-dependencies] -pretty_assertions = "1.3.0" -tempfile = "3.2.0" -indoc = "1.0.7" cli_utils = { path = "../cli_utils" } dircpy = "0.3.13" + +indoc.workspace = true +pretty_assertions.workspace = true +tempfile.workspace = true diff --git a/crates/highlight/Cargo.toml b/crates/highlight/Cargo.toml index 8277ed2cb9..9beeaae6ee 100644 --- a/crates/highlight/Cargo.toml +++ b/crates/highlight/Cargo.toml @@ -7,5 +7,6 @@ edition = "2021" description = "For syntax highlighting, starts with a string and returns our markup nodes." [dependencies] -peg = "0.8.1" roc_code_markup = { path = "../code_markup"} + +peg.workspace = true diff --git a/crates/packaging/Cargo.toml b/crates/packaging/Cargo.toml index 6b489b06bd..756c3b8259 100644 --- a/crates/packaging/Cargo.toml +++ b/crates/packaging/Cargo.toml @@ -14,13 +14,13 @@ roc_error_macros = { path = "../error_macros" } tar = "0.4.38" # used for `roc build --tar` brotli = "3.3.4" # used for decompressing tarballs over HTTPS, if the server supports brotli flate2 = "1.0.24" -walkdir = "2.3.2" blake3 = "1.3.1" base64-url = "1.4.13" bumpalo.workspace = true fs_extra.workspace = true tempfile.workspace = true +walkdir.workspace = true [target.'cfg(not(target_family = "wasm"))'.dependencies] # default-features=false removes libopenssl as a dependency on Linux, which might not be available!