From 6ff413028cb913c87dc8386c0d5f1d069d9cf815 Mon Sep 17 00:00:00 2001 From: Alfie John Date: Fri, 6 Sep 2024 09:48:47 +0000 Subject: [PATCH] Move all external dependencies to the workspace (#6179) --- Cargo.lock | 201 ++++------------------ Cargo.toml | 146 +++++++++++++++- forc-pkg/Cargo.toml | 46 ++--- forc-plugins/forc-client/Cargo.toml | 30 ++-- forc-plugins/forc-crypto/Cargo.toml | 30 ++-- forc-plugins/forc-debug/Cargo.toml | 20 +-- forc-plugins/forc-doc/Cargo.toml | 18 +- forc-plugins/forc-fmt/Cargo.toml | 10 +- forc-plugins/forc-lsp/Cargo.toml | 8 +- forc-plugins/forc-tx/Cargo.toml | 14 +- forc-test/Cargo.toml | 6 +- forc-tracing/Cargo.toml | 6 +- forc-util/Cargo.toml | 30 ++-- forc/Cargo.toml | 38 ++-- scripts/mdbook-forc-documenter/Cargo.toml | 12 +- sway-ast/Cargo.toml | 8 +- sway-core/Cargo.toml | 60 +++---- sway-error/Cargo.toml | 14 +- sway-ir/Cargo.toml | 20 +-- sway-ir/sway-ir-macros/Cargo.toml | 8 +- sway-lsp/Cargo.toml | 46 ++--- sway-lsp/tests/utils/Cargo.toml | 18 +- sway-parse/Cargo.toml | 14 +- sway-types/Cargo.toml | 18 +- sway-utils/Cargo.toml | 4 +- swayfmt/Cargo.toml | 14 +- test/Cargo.toml | 44 ++--- test/src/sdk-harness/Cargo.toml | 26 +-- 28 files changed, 449 insertions(+), 460 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b67de59cb8b..772923747ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -44,7 +44,7 @@ version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ - "getrandom 0.2.15", + "getrandom", "once_cell", "version_check", ] @@ -56,7 +56,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if 1.0.0", - "getrandom 0.2.15", + "getrandom", "once_cell", "version_check", "zerocopy", @@ -178,12 +178,6 @@ version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d151e35f61089500b617991b791fc8bfd237ae50cd5950803758a179b41e67a" -[[package]] -name = "arrayvec" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" - [[package]] name = "arrayvec" version = "0.7.4" @@ -396,17 +390,6 @@ dependencies = [ "wyz", ] -[[package]] -name = "blake2b_simd" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587" -dependencies = [ - "arrayref", - "arrayvec 0.5.2", - "constant_time_eq 0.1.5", -] - [[package]] name = "blake3" version = "1.5.3" @@ -414,10 +397,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e9ec96fe9a81b5e365f9db71fe00edc4fe4ca2cc7dcb7861f0603012a7caa210" dependencies = [ "arrayref", - "arrayvec 0.7.4", + "arrayvec", "cc", "cfg-if 1.0.0", - "constant_time_eq 0.3.0", + "constant_time_eq", ] [[package]] @@ -919,12 +902,6 @@ version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" -[[package]] -name = "constant_time_eq" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" - [[package]] name = "constant_time_eq" version = "0.3.0" @@ -1477,17 +1454,6 @@ version = "0.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "363641827cb8d8387a69364aa2f85433db83b8b00270ed2c786235d83bf0aa0a" -[[package]] -name = "dirs" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fd78930633bd1c6e35c4b42b1df7b0cbc6bc191146e512bb3bedf243fcc3901" -dependencies = [ - "libc", - "redox_users 0.3.5", - "winapi", -] - [[package]] name = "dirs" version = "3.0.2" @@ -1523,7 +1489,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6" dependencies = [ "libc", - "redox_users 0.4.5", + "redox_users", "winapi", ] @@ -1534,7 +1500,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" dependencies = [ "libc", - "redox_users 0.4.5", + "redox_users", "winapi", ] @@ -2034,8 +2000,8 @@ dependencies = [ "sway-utils", "term-table", "tokio", - "toml 0.7.8", - "toml_edit 0.19.15", + "toml 0.8.19", + "toml_edit 0.21.1", "tracing", "url", "uwuify", @@ -2171,7 +2137,7 @@ dependencies = [ "forc-pkg", "forc-tracing 0.63.5", "forc-util", - "prettydiff 0.5.1", + "prettydiff", "sway-core", "sway-utils", "swayfmt", @@ -2958,17 +2924,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - [[package]] name = "getrandom" version = "0.2.15" @@ -2977,7 +2932,7 @@ checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if 1.0.0", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", ] [[package]] @@ -4373,7 +4328,7 @@ checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ "libc", "log", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "windows-sys 0.48.0", ] @@ -4385,7 +4340,7 @@ checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" dependencies = [ "hermit-abi 0.3.9", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "windows-sys 0.52.0", ] @@ -4905,7 +4860,7 @@ version = "3.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "306800abfa29c7f16596b5970a588435e3d5b3149683d00c12b699cc19f895ee" dependencies = [ - "arrayvec 0.7.4", + "arrayvec", "bitvec", "byte-slice-cast", "impl-trait-for-tuples", @@ -5267,17 +5222,6 @@ dependencies = [ "yansi", ] -[[package]] -name = "prettydiff" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb5671a83709b2755fe5b776d4915701bf36ed2cd9575035502ec12818141d71" -dependencies = [ - "ansi_term", - "prettytable-rs 0.8.0", - "structopt", -] - [[package]] name = "prettydiff" version = "0.6.4" @@ -5286,24 +5230,10 @@ checksum = "8ff1fec61082821f8236cf6c0c14e8172b62ce8a72a0eedc30d3b247bb68dc11" dependencies = [ "ansi_term", "pad", - "prettytable-rs 0.10.0", + "prettytable-rs", "structopt", ] -[[package]] -name = "prettytable-rs" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fd04b170004fa2daccf418a7f8253aaf033c27760b5f225889024cf66d7ac2e" -dependencies = [ - "atty", - "csv", - "encode_unicode 0.3.6", - "lazy_static", - "term 0.5.2", - "unicode-width", -] - [[package]] name = "prettytable-rs" version = "0.10.0" @@ -5314,7 +5244,7 @@ dependencies = [ "encode_unicode 1.0.0", "is-terminal", "lazy_static", - "term 0.7.0", + "term", "unicode-width", ] @@ -5554,7 +5484,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.15", + "getrandom", ] [[package]] @@ -5597,12 +5527,6 @@ dependencies = [ "crossbeam-utils", ] -[[package]] -name = "redox_syscall" -version = "0.1.57" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" - [[package]] name = "redox_syscall" version = "0.2.16" @@ -5636,24 +5560,13 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "20145670ba436b55d91fc92d25e71160fbfbdd57831631c8d7d36377a476f1cb" -[[package]] -name = "redox_users" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d" -dependencies = [ - "getrandom 0.1.16", - "redox_syscall 0.1.57", - "rust-argon2", -] - [[package]] name = "redox_users" version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891" dependencies = [ - "getrandom 0.2.15", + "getrandom", "libredox 0.1.3", "thiserror", ] @@ -5875,7 +5788,7 @@ checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", "cfg-if 1.0.0", - "getrandom 0.2.15", + "getrandom", "libc", "spin", "untrusted", @@ -5985,25 +5898,13 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "rust-argon2" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b18820d944b33caa75a71378964ac46f58517c92b6ae5f762636247c09e78fb" -dependencies = [ - "base64 0.13.1", - "blake2b_simd", - "constant_time_eq 0.1.5", - "crossbeam-utils", -] - [[package]] name = "rust_decimal" version = "1.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1790d1c4c0ca81211399e0e0af16333276f375209e71a37b67698a373db5b47a" dependencies = [ - "arrayvec 0.7.4", + "arrayvec", "borsh", "bytes", "num-traits", @@ -6893,7 +6794,7 @@ dependencies = [ "rustc-hash", "serde", "serde_json", - "sha2 0.9.9", + "sha2 0.10.8", "strum 0.24.1", "sway-ast", "sway-error", @@ -6933,7 +6834,7 @@ dependencies = [ "itertools 0.10.5", "once_cell", "peg", - "prettydiff 0.6.4", + "prettydiff", "rustc-hash", "slotmap", "sway-ir-macros", @@ -6994,7 +6895,7 @@ dependencies = [ "thiserror", "tikv-jemallocator", "tokio", - "toml_edit 0.19.15", + "toml_edit 0.21.1", "tower", "tower-lsp", "tracing", @@ -7070,7 +6971,7 @@ dependencies = [ "forc-tracing 0.63.5", "indoc", "paste", - "prettydiff 0.6.4", + "prettydiff", "ropey", "serde", "serde_ignored", @@ -7082,7 +6983,7 @@ dependencies = [ "sway-utils", "test-macros", "thiserror", - "toml 0.7.8", + "toml 0.8.19", ] [[package]] @@ -7269,17 +7170,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "term" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edd106a334b7657c10b7c540a0106114feadeb4dc314513e97df481d5d966f42" -dependencies = [ - "byteorder", - "dirs 1.0.5", - "winapi", -] - [[package]] name = "term" version = "0.7.0" @@ -7355,7 +7245,7 @@ dependencies = [ "insta", "libtest-mimic", "miden", - "prettydiff 0.6.4", + "prettydiff", "rand", "regex", "revm", @@ -7367,7 +7257,7 @@ dependencies = [ "sway-utils", "textwrap 0.16.1", "tokio", - "toml 0.7.8", + "toml 0.8.19", "tracing", "vte 0.13.0", ] @@ -7377,7 +7267,7 @@ name = "test-macros" version = "0.0.0" dependencies = [ "paste", - "prettydiff 0.6.4", + "prettydiff", ] [[package]] @@ -7652,18 +7542,6 @@ dependencies = [ "serde", ] -[[package]] -name = "toml" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257" -dependencies = [ - "serde", - "serde_spanned", - "toml_datetime", - "toml_edit 0.19.15", -] - [[package]] name = "toml" version = "0.8.19" @@ -7685,19 +7563,6 @@ dependencies = [ "serde", ] -[[package]] -name = "toml_edit" -version = "0.19.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" -dependencies = [ - "indexmap 2.4.0", - "serde", - "serde_spanned", - "toml_datetime", - "winnow 0.5.40", -] - [[package]] name = "toml_edit" version = "0.21.1" @@ -8070,7 +7935,7 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" dependencies = [ - "getrandom 0.2.15", + "getrandom", "serde", ] @@ -8146,7 +8011,7 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f5022b5fbf9407086c180e9557be968742d839e68346af7792b8592489732197" dependencies = [ - "arrayvec 0.7.4", + "arrayvec", "utf8parse", "vte_generate_state_changes", ] @@ -8157,7 +8022,7 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40eb22ae96f050e0c0d6f7ce43feeae26c348fc4dea56928ca81537cfaa6188b" dependencies = [ - "arrayvec 0.7.4", + "arrayvec", "utf8parse", "vte_generate_state_changes", ] @@ -8191,12 +8056,6 @@ dependencies = [ "try-lock", ] -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" diff --git a/Cargo.toml b/Cargo.toml index 5b038061b13..d70ff24660c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,7 +64,6 @@ forc-tx = { path = "forc-plugins/forc-tx/" } sway-ast = { path = "sway-ast/" } sway-core = { path = "sway-core/" } sway-error = { path = "sway-error/" } - sway-lsp = { path = "sway-lsp/" } sway-parse = { path = "sway-parse/" } sway-types = { path = "sway-types/" } @@ -79,10 +78,18 @@ sway-ir-macros = { path = "sway-ir/sway-ir-macros" } # External Fuel dependencies # +# Dependencies from the `fuel-abi-types` repository: +fuel-abi-types = "0.7.0" + # Dependencies from the `fuel-core` repository: fuel-core-client = { version = "0.35.0", default-features = false } fuel-core-types = { version = "0.35.0", default-features = false } +# Dependencies from the `fuels-rs` repository: +fuels = "0.66.4" +fuels-core = "0.66.4" +fuels-accounts = "0.66.4" + # Dependencies from the `fuel-vm` repository: fuel-asm = "0.56.0" fuel-crypto = "0.56.0" @@ -90,14 +97,137 @@ fuel-types = "0.56.0" fuel-tx = "0.56.0" fuel-vm = "0.56.0" -# Dependencies from the `fuels-rs` repository: -fuels-core = "0.66.4" -fuels-accounts = "0.66.4" -fuels = "0.66.4" - # Dependencies from the `forc-wallet` repository: forc-wallet = "0.9.0" -# Dependencies from the `fuel-abi-types` repository: -fuel-abi-types = "0.7.0" +# +# External dependencies +# +annotate-snippets = "0.10.1" +ansi_term = "0.12" +anyhow = "1.0.75" +assert_matches = "1.5.0" +assert-json-diff = "2.0" +async-trait = "0.1.58" +atty = "0.2.14" +byte-unit = "5.1.4" +bytecount = "0.6" +bytes = "1.3.0" +chrono = { version = "0.4", default-features = false, features = ["std"] } +cid = "0.11" +clap = { version = "4.5.4", features = ["cargo", "derive", "env"] } +clap_complete = "4.5.2" +clap_complete_fig = "4.5.0" +colored = "2.0.0" +comrak = "0.16" +crossbeam-channel = "0.5" +dap = "0.4.1-alpha1" +dashmap = "5.4" +derivative = "2.2.0" +devault = "0.1" +dialoguer = "0.11" +dirs = "3.0.2" +downcast-rs = "1.2.0" +either = "1.9.0" +ethabi = { package = "fuel-ethabi", version = "18.0.0" } +etk-asm = { package = "fuel-etk-asm", version = "0.3.1-dev", features = [ "backtraces" ] } +etk-ops = { package = "fuel-etk-ops", version = "0.3.1-dev" } +extension-trait = "1.0.1" +fd-lock = "4.0" +filecheck = "0.5" +fs_extra = "1.2" +futures = { version = "0.3.24", default-features = false, features = ["std", "async-await"] } +gag = "1.0" +gimli = "0.28.1" +git2 = { version = "0.19", features = ["vendored-libgit2", "vendored-openssl" ] } +gix-url = { version = "0.27", features = ["serde"] } +glob = "0.3.1" +graph-cycles = "0.1.0" +hashbrown = "0.13.1" +hex = "0.4.3" +horrorshow = "0.8.4" +im = "15.0" +in_definite = "1.0.0" +include_dir = "0.7.3" +indexmap = { version = "2.0.0", features = ["rayon"] } +indoc = "2.0" +insta = "1.39.0" +ipfs-api-backend-hyper = { version = "0.6", features = ["with-builder"] } +itertools = "0.10.3" +lazy_static = "1.4" +libp2p-identity = { version = "0.2.4", features = ["secp256k1", "peerid"] } +libtest-mimic = "0.7.3" +lsp-types = { version = "0.94", features = ["proposed"] } +mdbook = { version = "0.4", default-features = false } +miden = "0.3.0" +miden-core = "0.3.0" +minifier = "0.3.0" +notify = "5.0.0" +notify-debouncer-mini = "0.2.0" +num-bigint = { version = "0.4.3", features = ["serde"] } +num-traits = "0.2.16" +object = { version = "0.32.2", features = ["write"] } +once_cell = "1.18.0" +opener = "0.5.0" +parking_lot = "0.12.1" +paste = "1.0.14" +peg = "0.7" +pest = "2.1.3" +pest_derive = "2.1" +petgraph = { version = "0.6", features = ["serde-1"] } +phf = { version = "0.10.1", features = ["macros"] } +pretty_assertions = "1.4.0" +prettydiff = "0.6.4" +proc-macro2 = "1.0.5" +quote = "1.0.21" +rand = "0.8" +rayon = "1.7.0" +rayon-cond = "0.3" +regex = "1.10.2" +reqwest = "0.12" +revm = "2.3.1" +ropey = "1.5" +rpassword = "7.2" +rustc-hash = "1.1.0" +semver = { version = "1.0", features = ["serde"] } +serde = { version = "1.0", features = ["derive"] } +serde_ignored = "0.1.9" +serde_json = "1.0.91" +serde_with = "3.3.0" +serde_yaml = "0.9.27" +serial_test = "3.0.0" +sha2 = "0.10" +sha3 = "0.10.8" +shellfish = { version = "0.6.0", features = ["rustyline", "async", "tokio"] } +slotmap = "1.0.7" +smallvec = "1.7" +strsim = "0.11.1" +strum = { version = "0.24.1", features = ["derive"] } +syn = { version = "1.0.99", features = ["derive", "extra-traits", "full" ] } +tai64 = { version = "4.0", features = ["serde"] } +taplo = "0.7" +tar = "0.4.38" +tempfile = "3" +term-table = "1.3" +termion = "2.0.1" +textwrap = "0.16.0" +thiserror = "1.0.30" +tikv-jemallocator = "0.5" +tokio = { version = "1.12", features = [ "fs", "io-std", "io-util", "macros", "net", "process", "rt", "rt-multi-thread", "sync", "time"] } +toml = { version = "0.8", features = ["parse"] } +toml_edit = "0.21.1" +tower = { version = "0.4.12", default-features = false, features = ["util"] } +tower-lsp = { version = "0.20", features = ["proposed"] } +tracing = "0.1" +tracing-subscriber = { version = "0.3", features = [ "ansi", "env-filter", "json" ] } +uint = "0.9" +unicode-bidi = "0.3.13" +unicode-xid = "0.2.2" +url = { version = "2.2", features = ["serde"] } +urlencoding = "2.1.2" +uwuify = "^0.2" +vec1 = "1.8.0" +vte = "0.13.0" +walkdir = "2.3.3" +whoami = "1.1" diff --git a/forc-pkg/Cargo.toml b/forc-pkg/Cargo.toml index 8627e6b7417..a439b277008 100644 --- a/forc-pkg/Cargo.toml +++ b/forc-pkg/Cargo.toml @@ -9,41 +9,41 @@ license.workspace = true repository.workspace = true [dependencies] -ansi_term = "0.12" -anyhow = "1" -byte-unit = "5.1.4" -cid = "0.11" +ansi_term.workspace = true +anyhow.workspace = true +byte-unit.workspace = true +cid.workspace = true forc-tracing = { workspace = true } forc-util = { workspace = true } fuel-abi-types = { workspace = true } -futures = "0.3" -git2 = { version = "0.19", features = [ +futures.workspace = true +git2 = { workspace = true, features = [ "vendored-libgit2", "vendored-openssl", ] } -gix-url = { version = "0.27", features = ["serde"] } -hex = "0.4.3" -ipfs-api-backend-hyper = { version = "0.6", features = ["with-builder"] } -petgraph = { version = "0.6", features = ["serde-1"] } -reqwest = "0.12" -semver = { version = "1.0", features = ["serde"] } -serde = { version = "1.0", features = ["derive"] } -serde_ignored = "0.1.9" -serde_json = "1.0" -serde_with = "3.3.0" +gix-url = { workspace = true, features = ["serde"] } +hex.workspace = true +ipfs-api-backend-hyper = { workspace = true, features = ["with-builder"] } +petgraph = { workspace = true, features = ["serde-1"] } +reqwest.workspace = true +semver = { workspace = true, features = ["serde"] } +serde = { workspace = true, features = ["derive"] } +serde_ignored.workspace = true +serde_json.workspace = true +serde_with.workspace = true sway-core = { workspace = true } sway-error = { workspace = true } sway-types = { workspace = true } sway-utils = { workspace = true } -tar = "0.4.38" -toml = { version = "0.8", features = ["parse"] } -tracing = "0.1" -url = { version = "2.2", features = ["serde"] } -vec1 = "1.8.0" -walkdir = "2" +tar.workspace = true +toml = { workspace = true, features = ["parse"] } +tracing.workspace = true +url = { workspace = true, features = ["serde"] } +vec1.workspace = true +walkdir.workspace = true [dev-dependencies] regex = "^1.10.2" [target.'cfg(not(target_os = "macos"))'.dependencies] -sysinfo = "0.29" +sysinfo = "0.29.0" diff --git a/forc-plugins/forc-client/Cargo.toml b/forc-plugins/forc-client/Cargo.toml index 4eed99c2187..0381fdacc02 100644 --- a/forc-plugins/forc-client/Cargo.toml +++ b/forc-plugins/forc-client/Cargo.toml @@ -9,12 +9,12 @@ license.workspace = true repository.workspace = true [dependencies] -anyhow = "1" -async-trait = "0.1.58" -chrono = { version = "0.4", default-features = false, features = ["std"] } -clap = { version = "4.5.4", features = ["derive", "env"] } -devault = "0.1" -dialoguer = "0.11" +anyhow.workspace = true +async-trait.workspace = true +chrono = { workspace = true, default-features = false, features = ["std"] } +clap = { workspace = true, features = ["derive", "env"] } +devault.workspace = true +dialoguer.workspace = true forc = { workspace = true } forc-pkg = { workspace = true } forc-tracing = { workspace = true } @@ -30,18 +30,18 @@ fuel-vm = { workspace = true } fuels = { workspace = true } fuels-accounts = { workspace = true } fuels-core = { workspace = true } -futures = "0.3" -hex = "0.4.3" -rand = "0.8" -rpassword = "7.2" -serde = "1.0" -serde_json = "1" +futures.workspace = true +hex.workspace = true +rand.workspace = true +rpassword.workspace = true +serde_json.workspace = true +serde.workspace = true sway-core = { workspace = true } sway-types = { workspace = true } sway-utils = { workspace = true } -tokio = { version = "1.8", features = ["macros", "rt-multi-thread", "process"] } -toml_edit = "0.21.1" -tracing = "0.1" +tokio = { workspace = true, features = ["macros", "process", "rt-multi-thread"] } +toml_edit.workspace = true +tracing.workspace = true [dev-dependencies] portpicker = "0.1.1" diff --git a/forc-plugins/forc-crypto/Cargo.toml b/forc-plugins/forc-crypto/Cargo.toml index 8a0872526dd..9933dc3fb8f 100644 --- a/forc-plugins/forc-crypto/Cargo.toml +++ b/forc-plugins/forc-crypto/Cargo.toml @@ -9,23 +9,23 @@ license.workspace = true repository.workspace = true [dependencies] -anyhow = "1.0.75" -async-trait = "0.1.58" -atty = "0.2.14" -clap = { version = "4.5.4", features = ["derive", "env"] } +anyhow.workspace = true +async-trait.workspace = true +atty.workspace = true +clap = { workspace = true, features = ["derive", "env"] } forc-tracing = { workspace = true } forc-util = { workspace = true } fuel-core-types = { workspace = true } fuel-crypto = { workspace = true, features = ["random"] } fuels-core = { workspace = true } -futures = "0.3" -hex = "0.4.3" -libp2p-identity = { version = "0.2.4", features = ["secp256k1", "peerid"] } -rand = "0.8" -serde = "1.0" -serde_json = "1" -serde_yaml = "0.9.27" -sha3 = "0.10.8" -termion = "2.0.1" -tokio = { version = "1.8", features = ["macros", "rt-multi-thread", "process"] } -tracing = "0.1" +futures.workspace = true +hex.workspace = true +libp2p-identity = { workspace = true, features = ["peerid", "secp256k1"] } +rand.workspace = true +serde_json.workspace = true +serde_yaml.workspace = true +serde.workspace = true +sha3.workspace = true +termion.workspace = true +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "process"] } +tracing.workspace = true diff --git a/forc-plugins/forc-debug/Cargo.toml b/forc-plugins/forc-debug/Cargo.toml index 86eb1cdd969..9644c4f695d 100644 --- a/forc-plugins/forc-debug/Cargo.toml +++ b/forc-plugins/forc-debug/Cargo.toml @@ -9,26 +9,26 @@ license.workspace = true repository.workspace = true [dependencies] -anyhow = "1.0" # Used by the examples and for conversion only -clap = { version = "4.5.4", features = ["derive", "env"] } -dap = "0.4.1-alpha1" +anyhow.workspace = true +clap = { workspace = true, features = ["derive", "env"] } +dap.workspace = true forc-pkg = { workspace = true } forc-test = { workspace = true } forc-tracing = { workspace = true } fuel-core-client = { workspace = true } fuel-types = { workspace = true, features = ["serde"] } fuel-vm = { workspace = true, features = ["serde"] } -rayon = "1.7.0" -serde = "1.0" -serde_json = "1.0" -shellfish = { version = "0.6.0", features = ["rustyline", "async", "tokio"] } +rayon.workspace = true +serde_json.workspace = true +serde.workspace = true +shellfish = { workspace = true, features = ["async", "rustyline", "tokio"] } sway-core = { workspace = true } sway-types = { workspace = true } -thiserror = "1.0" -tokio = { version = "1.8", features = [ - "net", +thiserror.workspace = true +tokio = { workspace = true, features = [ "io-util", "macros", + "net", "rt-multi-thread", ] } diff --git a/forc-plugins/forc-doc/Cargo.toml b/forc-plugins/forc-doc/Cargo.toml index a6d6e52b6a3..a2080cb2046 100644 --- a/forc-plugins/forc-doc/Cargo.toml +++ b/forc-plugins/forc-doc/Cargo.toml @@ -9,18 +9,18 @@ license.workspace = true repository.workspace = true [dependencies] -anyhow = "1.0.65" -clap = { version = "4.5.4", features = ["derive"] } -comrak = "0.16" +anyhow.workspace = true +clap = { workspace = true, features = ["derive"] } +comrak.workspace = true forc-pkg = { workspace = true } forc-tracing = { workspace = true } forc-util = { workspace = true } -horrorshow = "0.8.4" -include_dir = "0.7.3" -minifier = "0.3.0" -opener = "0.5.0" -serde = "1.0" -serde_json = "1.0" +horrorshow.workspace = true +include_dir.workspace = true +minifier.workspace = true +opener.workspace = true +serde_json.workspace = true +serde.workspace = true sway-ast = { workspace = true } sway-core = { workspace = true } sway-lsp = { workspace = true } diff --git a/forc-plugins/forc-fmt/Cargo.toml b/forc-plugins/forc-fmt/Cargo.toml index 3f0c7a02959..c54345f6897 100644 --- a/forc-plugins/forc-fmt/Cargo.toml +++ b/forc-plugins/forc-fmt/Cargo.toml @@ -9,14 +9,14 @@ license.workspace = true repository.workspace = true [dependencies] -anyhow = "1" -clap = { version = "4.5.4", features = ["derive"] } +anyhow.workspace = true +clap = { workspace = true, features = ["derive"] } forc-pkg = { workspace = true } forc-tracing = { workspace = true } forc-util = { workspace = true } -prettydiff = "0.5" +prettydiff.workspace = true sway-core = { workspace = true } sway-utils = { workspace = true } swayfmt = { workspace = true } -taplo = "0.7" -tracing = "0.1" +taplo.workspace = true +tracing.workspace = true diff --git a/forc-plugins/forc-lsp/Cargo.toml b/forc-plugins/forc-lsp/Cargo.toml index b6544013f0f..e84b54779d7 100644 --- a/forc-plugins/forc-lsp/Cargo.toml +++ b/forc-plugins/forc-lsp/Cargo.toml @@ -9,8 +9,8 @@ license.workspace = true repository.workspace = true [dependencies] -anyhow = "1" -clap = { version = "4.5.4", features = ["derive"] } +anyhow.workspace = true +clap = { workspace = true, features = ["derive"] } sway-lsp = { workspace = true } -tikv-jemallocator = "0.5" -tokio = { version = "1.8" } +tikv-jemallocator.workspace = true +tokio = { workspace = true } diff --git a/forc-plugins/forc-tx/Cargo.toml b/forc-plugins/forc-tx/Cargo.toml index ca8f007b840..367758942b1 100644 --- a/forc-plugins/forc-tx/Cargo.toml +++ b/forc-plugins/forc-tx/Cargo.toml @@ -16,12 +16,12 @@ name = "forc-tx" path = "src/main.rs" [dependencies] -anyhow = "1" -clap = { version = "4.5.4", features = ["derive", "env"] } -devault = "0.1" +anyhow.workspace = true +clap = { workspace = true, features = ["derive", "env"] } +devault.workspace = true forc-util = { workspace = true } -fuel-tx = { workspace = true, features = ["serde", "test-helpers", "random"] } +fuel-tx = { workspace = true, features = ["random", "serde", "test-helpers"] } fuel-types = { workspace = true, features = ["serde"] } -serde = "1.0" -serde_json = { version = "1" } -thiserror = "1" +serde_json = { workspace = true } +serde.workspace = true +thiserror.workspace = true diff --git a/forc-test/Cargo.toml b/forc-test/Cargo.toml index 734209a9cc1..9d7397637ec 100644 --- a/forc-test/Cargo.toml +++ b/forc-test/Cargo.toml @@ -9,13 +9,13 @@ license.workspace = true repository.workspace = true [dependencies] -anyhow = "1" +anyhow.workspace = true forc-pkg = { workspace = true } fuel-abi-types = { workspace = true } fuel-tx = { workspace = true, features = ["test-helpers"] } fuel-vm = { workspace = true, features = ["random", "test-helpers"] } fuels-core = { workspace = true } -rand = "0.8" -rayon = "1.7.0" +rand.workspace = true +rayon.workspace = true sway-core = { workspace = true } sway-types = { workspace = true } diff --git a/forc-tracing/Cargo.toml b/forc-tracing/Cargo.toml index b85d6d0a1bd..4da599eb36b 100644 --- a/forc-tracing/Cargo.toml +++ b/forc-tracing/Cargo.toml @@ -9,9 +9,9 @@ license.workspace = true repository.workspace = true [dependencies] -ansi_term = "0.12" -tracing = "0.1" -tracing-subscriber = { version = "0.3", features = ["ansi", "env-filter", "json"] } +ansi_term.workspace = true +tracing-subscriber = { workspace = true, features = ["ansi", "env-filter", "json"] } +tracing.workspace = true [dev-dependencies] tracing-test = "0.2" \ No newline at end of file diff --git a/forc-util/Cargo.toml b/forc-util/Cargo.toml index 81bbf021a3f..f498521d140 100644 --- a/forc-util/Cargo.toml +++ b/forc-util/Cargo.toml @@ -9,31 +9,31 @@ license.workspace = true repository.workspace = true [dependencies] -annotate-snippets = { version = "0.10.1" } -ansi_term = "0.12" -anyhow = "1" -clap = { version = "4.5.4", features = ["cargo", "derive", "env"] } -dirs = "3.0.2" -fd-lock = "4.0" +annotate-snippets = { workspace = true } +ansi_term.workspace = true +anyhow.workspace = true +clap = { workspace = true, features = ["cargo", "derive", "env"] } +dirs.workspace = true +fd-lock.workspace = true forc-tracing = { workspace = true } fuel-tx = { workspace = true, features = ["serde"], optional = true } -hex = "0.4.3" -paste = "1.0.14" -regex = "1.10.2" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0.73" -serial_test = "3.0.0" +hex.workspace = true +paste.workspace = true +regex.workspace = true +serde = { workspace = true, features = ["derive"] } +serde_json.workspace = true +serial_test.workspace = true sway-core = { workspace = true } sway-error = { workspace = true } sway-types = { workspace = true } sway-utils = { workspace = true } -tracing = "0.1" -tracing-subscriber = { version = "0.3", features = [ +tracing.workspace = true +tracing-subscriber = { workspace = true, features = [ "ansi", "env-filter", "json", ] } -unicode-xid = "0.2.2" +unicode-xid.workspace = true [features] default = ["fuel-tx"] diff --git a/forc/Cargo.toml b/forc/Cargo.toml index 98e05580ac6..00636bacbd0 100644 --- a/forc/Cargo.toml +++ b/forc/Cargo.toml @@ -17,35 +17,35 @@ name = "forc" path = "src/main.rs" [dependencies] -annotate-snippets = { version = "0.10.1" } -ansi_term = "0.12" -anyhow = "1.0.41" -clap = { version = "4.5.4", features = ["cargo", "derive", "env"] } -clap_complete = "4.5.2" -clap_complete_fig = "4.5.0" +annotate-snippets.workspace = true +ansi_term.workspace = true +anyhow.workspace = true +clap = { workspace = true, features = ["cargo", "derive", "env"] } +clap_complete_fig.workspace = true +clap_complete.workspace = true forc-pkg = { workspace = true } forc-test = { workspace = true } forc-tracing = { workspace = true } forc-util = { workspace = true } -fs_extra = "1.2" +fs_extra.workspace = true fuel-asm = { workspace = true } -hex = "0.4.3" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0.73" +hex.workspace = true +serde = { workspace = true, features = ["derive"] } +serde_json.workspace = true sway-core = { workspace = true } sway-error = { workspace = true } sway-ir = { workspace = true } sway-types = { workspace = true } sway-utils = { workspace = true } -term-table = "1.3" -tokio = { version = "1.8.0", features = ["macros", "rt-multi-thread"] } -toml = { version = "0.7", features = ["parse"] } -toml_edit = "0.19" -tracing = "0.1" -url = "2.2" -uwuify = { version = "^0.2", optional = true } -walkdir = "2.3" -whoami = "1.1" +term-table.workspace = true +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } +toml = { workspace = true, features = ["parse"] } +toml_edit.workspace = true +tracing.workspace = true +url.workspace = true +uwuify = { workspace = true, optional = true } +walkdir.workspace = true +whoami.workspace = true [features] default = [] diff --git a/scripts/mdbook-forc-documenter/Cargo.toml b/scripts/mdbook-forc-documenter/Cargo.toml index eae79eff1ef..92664f0d3cb 100644 --- a/scripts/mdbook-forc-documenter/Cargo.toml +++ b/scripts/mdbook-forc-documenter/Cargo.toml @@ -13,9 +13,9 @@ name = "mdbook_forc_documenter" path = "src/lib.rs" [dependencies] -anyhow = "1" -clap = { version = "4.5.4", features = ["derive"] } -mdbook = { version = "0.4", default-features = false } -semver = "1.0" -serde = "1.0" -serde_json = "1.0" +anyhow.workspace = true +clap = { workspace = true, features = ["derive"] } +mdbook = { workspace = true, default-features = false } +semver.workspace = true +serde_json.workspace = true +serde.workspace = true diff --git a/sway-ast/Cargo.toml b/sway-ast/Cargo.toml index c1049729c2a..f14e68bf9dc 100644 --- a/sway-ast/Cargo.toml +++ b/sway-ast/Cargo.toml @@ -9,10 +9,10 @@ license.workspace = true repository.workspace = true [dependencies] -extension-trait = "1.0.1" -num-bigint = { version = "0.4.3", features = ["serde"] } -num-traits = "0.2.14" -serde = { version = "1.0", features = ["derive"] } +extension-trait.workspace = true +num-bigint = { workspace = true, features = ["serde"] } +num-traits.workspace = true +serde = { workspace = true, features = ["derive"] } sway-error = { workspace = true } sway-types = { workspace = true } diff --git a/sway-core/Cargo.toml b/sway-core/Cargo.toml index 6a93b20b9d6..2f5160beea4 100644 --- a/sway-core/Cargo.toml +++ b/sway-core/Cargo.toml @@ -9,46 +9,46 @@ license.workspace = true repository.workspace = true [dependencies] -clap = { version = "4.5.4", features = ["derive"] } -derivative = "2.2.0" -dirs = "3.0" -either = "1.9.0" -ethabi = { package = "fuel-ethabi", version = "18.0.0" } -etk-asm = { package = "fuel-etk-asm", version = "0.3.1-dev", features = [ +clap = { workspace = true, features = ["derive"] } +derivative.workspace = true +dirs.workspace = true +either.workspace = true +ethabi = { workspace = true, package = "fuel-ethabi" } +etk-asm = { workspace = true, package = "fuel-etk-asm", features = [ "backtraces", ] } -etk-ops = { package = "fuel-etk-ops", version = "0.3.1-dev" } +etk-ops = { workspace = true, package = "fuel-etk-ops" } fuel-abi-types = { workspace = true } fuel-vm = { workspace = true, features = ["serde"] } -gimli = "0.28.1" -graph-cycles = "0.1.0" -hashbrown = "0.13.1" -hex = { version = "0.4", optional = true } -im = "15.0" -indexmap = "2.0.0" -itertools = "0.10" -lazy_static = "1.4" -miden-core = "0.3.0" -object = { version = "0.32.2", features = ["write"] } -parking_lot = "0.12" -pest = "2.1.3" -pest_derive = "2.1" -petgraph = "0.6" -rustc-hash = "1.1.0" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0.91" -sha2 = "0.9" -strum = { version = "0.24.1", features = ["derive"] } +gimli.workspace = true +graph-cycles.workspace = true +hashbrown.workspace = true +hex = { workspace = true, optional = true } +im.workspace = true +indexmap.workspace = true +itertools.workspace = true +lazy_static.workspace = true +miden-core.workspace = true +object = { workspace = true, features = ["write"] } +parking_lot.workspace = true +pest_derive.workspace = true +pest.workspace = true +petgraph.workspace = true +rustc-hash.workspace = true +serde = { workspace = true, features = ["derive"] } +serde_json.workspace = true +sha2.workspace = true +strum = { workspace = true, features = ["derive"] } sway-ast = { workspace = true } sway-error = { workspace = true } sway-ir = { workspace = true } sway-parse = { workspace = true } sway-types = { workspace = true } sway-utils = { workspace = true } -thiserror = "1.0" -tracing = "0.1" -uint = "0.9" -vec1 = "1.8.0" +thiserror.workspace = true +tracing.workspace = true +uint.workspace = true +vec1.workspace = true [target.'cfg(not(target_os = "macos"))'.dependencies] sysinfo = "0.29.0" diff --git a/sway-error/Cargo.toml b/sway-error/Cargo.toml index 9ef81cd49ec..2ec3776f15a 100644 --- a/sway-error/Cargo.toml +++ b/sway-error/Cargo.toml @@ -9,14 +9,14 @@ license.workspace = true repository.workspace = true [dependencies] -either = "1.9.0" -in_definite = "1.0.0" -num-traits = "0.2.14" -smallvec = "1.7" -strsim = "0.11.1" +either.workspace = true +in_definite.workspace = true +num-traits.workspace = true +smallvec.workspace = true +strsim.workspace = true sway-types = { workspace = true } -thiserror = "1.0" -uwuify = { version = "^0.2", optional = true } +thiserror.workspace = true +uwuify = { workspace = true, optional = true } [features] default = [] diff --git a/sway-ir/Cargo.toml b/sway-ir/Cargo.toml index be590296db4..3e9c84cbb5d 100644 --- a/sway-ir/Cargo.toml +++ b/sway-ir/Cargo.toml @@ -9,16 +9,16 @@ license.workspace = true repository.workspace = true [dependencies] -anyhow = "1.0" -downcast-rs = "1.2.0" -filecheck = "0.5" -indexmap = { version = "2.0.0", features = ["rayon"] } -itertools = "0.10.3" -once_cell = "1.18.0" -peg = "0.7" -prettydiff = "0.6.4" -rustc-hash = "1.1.0" -slotmap = "1.0.7" +anyhow.workspace = true +downcast-rs.workspace = true +filecheck.workspace = true +indexmap = { workspace = true, features = ["rayon"] } +itertools.workspace = true +once_cell.workspace = true +peg.workspace = true +prettydiff.workspace = true +rustc-hash.workspace = true +slotmap.workspace = true sway-ir-macros = { workspace = true } sway-types = { workspace = true } sway-utils = { workspace = true } diff --git a/sway-ir/sway-ir-macros/Cargo.toml b/sway-ir/sway-ir-macros/Cargo.toml index 7423ab14587..8fa8ce10dbd 100644 --- a/sway-ir/sway-ir-macros/Cargo.toml +++ b/sway-ir/sway-ir-macros/Cargo.toml @@ -12,10 +12,10 @@ repository.workspace = true proc-macro = true [dependencies] -itertools = "0.10.3" -proc-macro2 = "1.0.43" -quote = "1.0.21" -syn = { version = "1.0.99", features = ["derive", "extra-traits"] } +itertools.workspace = true +proc-macro2.workspace = true +quote.workspace = true +syn = { workspace = true, features = ["derive", "extra-traits"] } [lints.clippy] iter_over_hash_type = "deny" diff --git a/sway-lsp/Cargo.toml b/sway-lsp/Cargo.toml index d9f0edf3242..d97e2336102 100644 --- a/sway-lsp/Cargo.toml +++ b/sway-lsp/Cargo.toml @@ -9,24 +9,24 @@ license.workspace = true repository.workspace = true [dependencies] -anyhow = "1.0.41" -crossbeam-channel = "0.5" -dashmap = "5.4" -fd-lock = "4.0" +anyhow.workspace = true +crossbeam-channel.workspace = true +dashmap.workspace = true +fd-lock.workspace = true forc-pkg = { workspace = true } forc-tracing = { workspace = true } forc-util = { workspace = true } -indexmap = { version = "2.0.0", features = ["rayon"] } -lsp-types = { version = "0.94", features = ["proposed"] } -notify = "5.0.0" -notify-debouncer-mini = { version = "0.2.0" } -parking_lot = "0.12.1" -proc-macro2 = "1.0.5" -quote = "1.0.9" -rayon = "1.5.0" -rayon-cond = "0.3" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0.60" +indexmap = { workspace = true, features = ["rayon"] } +lsp-types = { workspace = true, features = ["proposed"] } +notify-debouncer-mini.workspace = true +notify.workspace = true +parking_lot.workspace = true +proc-macro2.workspace = true +quote.workspace = true +rayon-cond.workspace = true +rayon.workspace = true +serde = { workspace = true, features = ["derive"] } +serde_json.workspace = true sway-ast = { workspace = true } sway-core = { workspace = true } sway-error = { workspace = true } @@ -34,10 +34,10 @@ sway-parse = { workspace = true } sway-types = { workspace = true } sway-utils = { workspace = true } swayfmt = { workspace = true } -syn = { version = "1.0.73", features = ["full"] } -tempfile = "3" -thiserror = "1.0.30" -tokio = { version = "1.3", features = [ +syn = { workspace = true, features = ["full"] } +tempfile.workspace = true +thiserror.workspace = true +tokio = { workspace = true, features = [ "fs", "io-std", "io-util", @@ -47,10 +47,10 @@ tokio = { version = "1.3", features = [ "sync", "time", ] } -toml_edit = "0.19" -tower-lsp = { version = "0.20", features = ["proposed"] } -tracing = "0.1" -urlencoding = "2.1.2" +toml_edit.workspace = true +tower-lsp = { workspace = true, features = ["proposed"] } +tracing.workspace = true +urlencoding.workspace = true [dev-dependencies] assert-json-diff = "2.0" diff --git a/sway-lsp/tests/utils/Cargo.toml b/sway-lsp/tests/utils/Cargo.toml index 1901ec8c701..eea1148833c 100644 --- a/sway-lsp/tests/utils/Cargo.toml +++ b/sway-lsp/tests/utils/Cargo.toml @@ -10,12 +10,12 @@ license.workspace = true repository.workspace = true [dependencies] -assert-json-diff = "2.0" -futures = { version = "0.3", default-features = false, features = ["std", "async-await"] } -lsp-types = { version = "0.94", features = ["proposed"] } -rand = "0.8" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0.60" -tokio = { version = "1.3", features = ["io-std", "io-util", "macros", "net", "rt-multi-thread", "sync", "time"] } -tower = { version = "0.4.12", default-features = false, features = ["util"] } -tower-lsp = { version = "0.20", features = ["proposed"] } +assert-json-diff.workspace = true +futures = { workspace = true, default-features = false, features = ["async-await", "std"] } +lsp-types = { workspace = true, features = ["proposed"] } +rand.workspace = true +serde = { workspace = true, features = ["derive"] } +serde_json.workspace = true +tokio = { workspace = true, features = ["io-util", "io-std", "macros", "net", "rt-multi-thread", "sync", "time"] } +tower = { workspace = true, default-features = false, features = ["util"] } +tower-lsp = { workspace = true, features = ["proposed"] } diff --git a/sway-parse/Cargo.toml b/sway-parse/Cargo.toml index 3f1eef7c000..50299384e7e 100644 --- a/sway-parse/Cargo.toml +++ b/sway-parse/Cargo.toml @@ -9,16 +9,16 @@ license.workspace = true repository.workspace = true [dependencies] -extension-trait = "1.0.1" -num-bigint = "0.4.3" -num-traits = "0.2.14" -phf = { version = "0.10.1", features = ["macros"] } +extension-trait.workspace = true +num-bigint.workspace = true +num-traits.workspace = true +phf = { workspace = true, features = ["macros"] } sway-ast = { workspace = true } sway-error = { workspace = true } sway-types = { workspace = true } -thiserror = "1.0" -unicode-bidi = "0.3.13" -unicode-xid = "0.2.2" +thiserror.workspace = true +unicode-bidi.workspace = true +unicode-xid.workspace = true [dev-dependencies] assert_matches = "1.5.0" diff --git a/sway-types/Cargo.toml b/sway-types/Cargo.toml index 578da44b6fb..0d0179b0df8 100644 --- a/sway-types/Cargo.toml +++ b/sway-types/Cargo.toml @@ -9,19 +9,19 @@ license.workspace = true repository.workspace = true [dependencies] -bytecount = "0.6" +bytecount.workspace = true fuel-asm = { workspace = true } fuel-crypto = { workspace = true } fuel-tx = { workspace = true } -indexmap = "2.0.0" -lazy_static = "1.4" -num-bigint = "0.4.3" -num-traits = "0.2.16" -parking_lot = "0.12" -rustc-hash = "1.1.0" -serde = { version = "1.0", features = ["derive"] } +indexmap.workspace = true +lazy_static.workspace = true +num-bigint.workspace = true +num-traits.workspace = true +parking_lot.workspace = true +rustc-hash.workspace = true +serde = { workspace = true, features = ["derive"] } sway-utils = { workspace = true } -thiserror = "1" +thiserror.workspace = true [features] no-span-debug = [] diff --git a/sway-utils/Cargo.toml b/sway-utils/Cargo.toml index 207735063de..1a379a23d51 100644 --- a/sway-utils/Cargo.toml +++ b/sway-utils/Cargo.toml @@ -9,8 +9,8 @@ license.workspace = true repository.workspace = true [dependencies] -serde = { version = "1.0", features = ["derive"] } -walkdir = "2.3.3" +serde = { workspace = true, features = ["derive"] } +walkdir.workspace = true [lints.clippy] iter_over_hash_type = "deny" diff --git a/swayfmt/Cargo.toml b/swayfmt/Cargo.toml index d35e8692988..47a78151cc2 100644 --- a/swayfmt/Cargo.toml +++ b/swayfmt/Cargo.toml @@ -9,20 +9,20 @@ license.workspace = true repository.workspace = true [dependencies] -anyhow = "1" +anyhow.workspace = true forc-tracing = { workspace = true } -indoc = "2.0" -ropey = "1.5" -serde = { version = "1.0", features = ["derive"] } -serde_ignored = "0.1.9" +indoc.workspace = true +ropey.workspace = true +serde = { workspace = true, features = ["derive"] } +serde_ignored.workspace = true sway-ast = { workspace = true } sway-core = { workspace = true } sway-error = { workspace = true } sway-parse = { workspace = true } sway-types = { workspace = true } sway-utils = { workspace = true } -thiserror = "1.0.30" -toml = { version = "0.7", features = ["parse"] } +thiserror.workspace = true +toml = { workspace = true, features = ["parse"] } [dev-dependencies] difference = "2.0.0" diff --git a/test/Cargo.toml b/test/Cargo.toml index 9d1d5248d68..d19f9ff4c47 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -6,39 +6,39 @@ authors.workspace = true edition.workspace = true [dependencies] -anyhow = "1.0.41" -bytes = "1.3.0" -clap = { version = "4.5.4", features = ["derive", "env"] } -colored = "2.0.0" -filecheck = "0.5" +anyhow.workspace = true +bytes.workspace = true +clap = { workspace = true, features = ["derive", "env"] } +colored.workspace = true +filecheck.workspace = true forc = { path = "../forc", features = ["test"], default-features = false } forc-client = { path = "../forc-plugins/forc-client" } forc-pkg = { path = "../forc-pkg" } forc-test = { path = "../forc-test" } forc-tracing = { path = "../forc-tracing" } fuel-vm = { workspace = true, features = ["random"] } -futures = "0.3.24" -gag = "1.0" -glob = "0.3.1" -hex = "0.4.3" -insta = "1.39.0" -libtest-mimic = "0.7.3" -miden = "0.3.0" -prettydiff = "0.6" -rand = "0.8" -regex = "1.7" -revm = "2.3.1" -serde_json = "1.0.73" +futures.workspace = true +gag.workspace = true +glob.workspace = true +hex.workspace = true +insta.workspace = true +libtest-mimic.workspace = true +miden.workspace = true +prettydiff.workspace = true +rand.workspace = true +regex.workspace = true +revm.workspace = true +serde_json.workspace = true sway-core = { path = "../sway-core" } sway-error = { path = "../sway-error" } sway-ir = { path = "../sway-ir" } sway-types = { path = "../sway-types" } sway-utils = { path = "../sway-utils" } -textwrap = "0.16.0" -tokio = "1.12" -toml = { version = "0.7", features = ["parse"] } -tracing = "0.1" -vte = "0.13.0" +textwrap.workspace = true +tokio.workspace = true +toml = { workspace = true, features = ["parse"] } +tracing.workspace = true +vte.workspace = true [[test]] name = "tests" diff --git a/test/src/sdk-harness/Cargo.toml b/test/src/sdk-harness/Cargo.toml index d6e74f9ad9f..72171c78916 100644 --- a/test/src/sdk-harness/Cargo.toml +++ b/test/src/sdk-harness/Cargo.toml @@ -7,26 +7,26 @@ version = "0.0.0" publish = false [dependencies] -assert_matches = "1.5.0" +assert_matches.workspace = true # Dependencies from the `fuel-core` repository: -fuel-core = { version = "0.35.0", default-features = false } -fuel-core-client = { version = "0.35.0", default-features = false } +fuel-core = { workspace = true, default-features = false } +fuel-core-client = { workspace = true, default-features = false } # Dependencies from the `fuel-vm` repository: -fuel-vm = { version = "0.56.0", features = ["random"] } +fuel-vm = { workspace = true, features = ["random"] } # Dependencies from the `fuels-rs` repository: -fuels = { version = "0.66.4", features = ["fuel-core-lib"] } +fuels = { workspace = true, features = ["fuel-core-lib"] } -hex = "0.4.3" -paste = "1.0.14" -pretty_assertions = "1.4.0" -rand = "0.8" -sha2 = "0.10" -sha3 = "0.10.1" -tai64 = { version = "4.0", features = ["serde"] } -tokio = { version = "1.12", features = ["rt", "macros"] } +hex.workspace = true +paste.workspace = true +pretty_assertions.workspace = true +rand.workspace = true +sha2.workspace = true +sha3.workspace = true +tai64 = { workspace = true, features = ["serde"] } +tokio = { workspace = true, features = ["macros", "rt"] } [[test]] harness = true