diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e332f718..5682aa9b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#1467](https://github.com/o1-labs/mina-rust/pull/1467)) - **Website**: bump up to docusaurus 3.9.1 ([#1500](https://github.com/o1-labs/mina-rust/pull/1500)) +- **Dependencies**: move all dependencies to the workspace Cargo.toml + ([#1513](https://github.com/o1-labs/mina-rust/pull/1513)) ## v0.17.0 diff --git a/Cargo.lock b/Cargo.lock index 9dd3b7196..0021fc47e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -246,7 +246,7 @@ checksum = "d69eab57e8d2663efa5c63135b2af4f396d66424f88954c21104125ab6b3e6bc" dependencies = [ "ark-ec", "ark-ff", - "ark-std 0.5.0", + "ark-std", ] [[package]] @@ -258,8 +258,8 @@ dependencies = [ "ahash 0.8.8", "ark-ff", "ark-poly", - "ark-serialize 0.5.0", - "ark-std 0.5.0", + "ark-serialize", + "ark-std", "educe", "fnv", "hashbrown 0.15.2", @@ -279,8 +279,8 @@ checksum = "a177aba0ed1e0fbb62aa9f6d0502e9b46dad8c2eab04c14258a1212d2557ea70" dependencies = [ "ark-ff-asm", "ark-ff-macros", - "ark-serialize 0.5.0", - "ark-std 0.5.0", + "ark-serialize", + "ark-std", "arrayvec", "digest 0.10.7", "educe", @@ -323,25 +323,14 @@ checksum = "579305839da207f02b89cd1679e50e67b4331e2f9294a57693e5051b7703fe27" dependencies = [ "ahash 0.8.8", "ark-ff", - "ark-serialize 0.5.0", - "ark-std 0.5.0", + "ark-serialize", + "ark-std", "educe", "fnv", "hashbrown 0.15.2", "rayon", ] -[[package]] -name = "ark-serialize" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" -dependencies = [ - "ark-std 0.4.0", - "digest 0.10.7", - "num-bigint", -] - [[package]] name = "ark-serialize" version = "0.5.0" @@ -349,7 +338,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f4d068aaf107ebcd7dfb52bc748f8030e0fc930ac8e360146ca54c1203088f7" dependencies = [ "ark-serialize-derive", - "ark-std 0.5.0", + "ark-std", "arrayvec", "digest 0.10.7", "num-bigint", @@ -367,16 +356,6 @@ dependencies = [ "syn 2.0.96", ] -[[package]] -name = "ark-std" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" -dependencies = [ - "num-traits", - "rand", -] - [[package]] name = "ark-std" version = "0.5.0" @@ -1453,7 +1432,6 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f5353f36341f7451062466f0b755b96ac3a9547e4d7f6b70d603fc721a7d7896" dependencies = [ - "sha2 0.10.8", "tinyvec", ] @@ -1736,13 +1714,13 @@ dependencies = [ "mina-node-native", "mina-p2p-messages", "mina-tree", - "nix 0.26.4", + "nix 0.27.1", "node", "num_cpus", "rand", "rayon", "redux", - "reqwest 0.11.24", + "reqwest 0.12.12", "serde", "serde_json", "sha2 0.10.8", @@ -3532,7 +3510,7 @@ dependencies = [ name = "hash-tool" version = "0.17.0" dependencies = [ - "bs58 0.5.0", + "bs58 0.4.0", "hex", "structopt", ] @@ -4420,7 +4398,7 @@ dependencies = [ "ark-ec", "ark-ff", "ark-poly", - "ark-serialize 0.5.0", + "ark-serialize", "blake2", "groupmap", "hex", @@ -4486,7 +4464,7 @@ dependencies = [ "mina-signer", "mina-tree", "node", - "reqwest 0.11.24", + "reqwest 0.12.12", "serde", "serde_json", "structopt", @@ -5116,7 +5094,7 @@ dependencies = [ "binprot", "clap 4.5.20", "mina-p2p-messages", - "reqwest 0.11.24", + "reqwest 0.12.12", "serde", "serde_json", "similar", @@ -5129,7 +5107,7 @@ version = "0.17.0" dependencies = [ "base64 0.22.1", "binprot", - "bs58 0.5.0", + "bs58 0.4.0", "env_logger", "libp2p", "libp2p-rpc-behaviour", @@ -5217,7 +5195,7 @@ dependencies = [ name = "mina-gossipsub-sandbox" version = "0.17.0" dependencies = [ - "bs58 0.5.0", + "bs58 0.4.0", "env_logger", "libp2p", "log", @@ -5348,13 +5326,13 @@ dependencies = [ "mina-producer-dashboard", "mina-signer", "mina-tree", - "nix 0.26.4", + "nix 0.27.1", "node", "o1-utils", "rand", "rayon", "redux", - "reqwest 0.11.24", + "reqwest 0.12.12", "serde", "serde_json", "sha3", @@ -5399,7 +5377,7 @@ dependencies = [ "rand", "rayon", "redux", - "reqwest 0.11.24", + "reqwest 0.12.12", "serde", "serde_json", "strum", @@ -5449,7 +5427,7 @@ dependencies = [ "alloc-test", "anyhow", "ark-ff", - "ark-serialize 0.5.0", + "ark-serialize", "base64 0.22.1", "binprot", "binprot_derive", @@ -5493,7 +5471,7 @@ dependencies = [ "ark-ec", "ark-ff", "ark-poly", - "ark-serialize 0.5.0", + "ark-serialize", "mina-curves", "o1-utils", "once_cell", @@ -5566,9 +5544,9 @@ dependencies = [ "ark-ec", "ark-ff", "ark-poly", - "ark-serialize 0.5.0", + "ark-serialize", "backtrace", - "base64 0.13.1", + "base64 0.22.1", "bitvec", "blake2", "bs58 0.4.0", @@ -5601,7 +5579,7 @@ dependencies = [ "rand_seeder", "rayon", "redux", - "reqwest 0.11.24", + "reqwest 0.12.12", "rsa", "serde", "serde_json", @@ -6178,7 +6156,7 @@ dependencies = [ "ark-ec", "ark-ff", "ark-poly", - "ark-serialize 0.5.0", + "ark-serialize", "bcs", "hex", "num-bigint", @@ -6433,7 +6411,7 @@ dependencies = [ "rand", "rcgen 0.13.1", "redux", - "reqwest 0.11.24", + "reqwest 0.12.12", "salsa-simple", "serde", "serde_json", @@ -6853,7 +6831,7 @@ dependencies = [ "ark-ec", "ark-ff", "ark-poly", - "ark-serialize 0.5.0", + "ark-serialize", "blake2", "groupmap", "hex", @@ -6929,7 +6907,7 @@ name = "poseidon" version = "0.17.0" dependencies = [ "ark-ff", - "ark-serialize 0.5.0", + "ark-serialize", "mina-curves", "o1-utils", "once_cell", @@ -9687,7 +9665,7 @@ version = "0.17.0" dependencies = [ "ark-ec", "ark-ff", - "ark-serialize 0.4.2", + "ark-serialize", "binprot", "binprot_derive", "bitvec", @@ -10077,7 +10055,7 @@ dependencies = [ "anyhow", "ark-ec", "ark-ff", - "ark-serialize 0.5.0", + "ark-serialize", "bs58 0.4.0", "hex", "itertools 0.12.1", @@ -10511,7 +10489,7 @@ dependencies = [ "rand", "sha2 0.10.8", "sudo", - "thiserror 2.0.11", + "thiserror 1.0.60", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 79785e860..69b4c4703 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,17 +46,98 @@ arithmetic_side_effects = "warn" indexing_slicing = "warn" [workspace.dependencies] +aes = "0.8" +aes-gcm = "0.10.3" +alloc-test = { git = "https://github.com/openmina/alloc-test.git" } +anyhow = "1.0.81" +argon2 = { version = "0.5.3", features = ["std"] } ark-ec = { version = "0.5.0", features = ["std"] } ark-ff = { version = "0.5.0", features = ["parallel", "asm", "std"] } ark-poly = { version = "0.5.0" } ark-serialize = { version = "0.5.0", features = ["std"] } +aws-config = { version = "1.1.7", features = ["behavior-version-latest"] } +aws-sdk-s3 = "1.73.0" +axum = "0.7" +backtrace = "0.3" +base64 = "0.22" +bincode = "1.3.3" +binprot = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } +binprot_derive = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } +bitflags = "2.8.0" +bitvec = "1.0.1" +blake2 = "0.10" +bs58 = "0.4.0" +btreemultimap = "0.1.1" +bytes = "1.4.0" +cbc = { version = "0.1", features = ["block-padding", "alloc"] } +cfg-if = "1.0.0" +chacha20poly1305 = "0.10.1" +chrono = "0.4" +clap = { version = "4.5", features = ["derive"] } +console = "0.15.5" +console_error_panic_hook = "0.1" +crc32fast = "1" +crypto-bigint = { version = "0.5.5", features = [ + "generic-array", + "serde", + "alloc", +] } +crypto_secretbox = { version = "0.1.1", features = ["std"] } +ctrlc = "3.4.2" +curve25519-dalek = { version = "4.1", features = ["legacy_compatibility"] } +datachannel = { git = "https://github.com/openmina/datachannel-rs.git", rev = "1bfb064d0ff3e54a93ae0288409902aab8d102d3", features = [ + "vendored", +] } +dataloader = "0.18" +derive_more = "0.99.17" +dialoguer = "0.10.4" +documented = { version = "0.6" } +dotenv = "0.15" +dotenvy = "0.15" +ed25519-dalek = { version = "2.1.1", features = ["serde", "pem"] } +env_logger = "0.11.6" +etherparse = "0.17.0" +faster-stun = "1.0.1" +firestore = "0.44" +flate2 = "1.0.24" +flume = { version = "0.11.1", features = ["async", "spin"] } +fraction = { version = "=0.15.1", default-features = false, features = [ + "with-serde-support", +] } +futures = "0.3.30" +fuzzcheck = "0.12.1" +gcloud-sdk = { version = "0.26.0", default-features = false, features = [ + "google-firestore-v1", +] } +generic-array = "0.14.7" +getrandom = "0.2.15" +gloo-timers = { version = "0.3", features = ["futures"] } +gloo-utils = "0.2" +google-cloud-auth = "0.17.2" +google-cloud-storage = "0.24.0" graphannis-malloc_size_of = { git = "https://github.com/openmina/graphannis-malloc_size_of.git", rev = "f7da9f6" } graphannis-malloc_size_of_derive = { git = "https://github.com/openmina/graphannis-malloc_size_of_derive.git" } +graphql_client = { version = "0.14", features = ["reqwest"] } +hex = "0.4.3" +hkdf = "0.12.4" +hmac = "0.12" +inout = "0.1" +itertools = "0.12" +js-sys = "0.3.64" +jsonpath-rust = "0.5.0" juniper = { version = "0.16" } +juniper_warp = "0.8.0" kimchi = { git = "https://github.com/o1-labs/proof-systems", rev = "0b0fd5fe73964d2a3628c788e40ead819a8a806d" } +lazy_static = "1.4.0" +leb128 = "0.2.1" ledger = { path = "ledger", package = "mina-tree" } +libc = "0.2.151" libp2p = { git = "https://github.com/openmina/rust-libp2p", rev = "5c44c7d9", default-features = false } +libp2p-identity = { version = "=0.2.7", features = ["peerid"] } linkme = "0.3.22" +local-ip-address = "0.6.1" +log = "0.4.25" +md5 = "0.7.0" mina-curves = { git = "https://github.com/o1-labs/proof-systems", rev = "0b0fd5fe73964d2a3628c788e40ead819a8a806d" } mina-hasher = { git = "https://github.com/o1-labs/proof-systems", rev = "0b0fd5fe73964d2a3628c788e40ead819a8a806d" } mina-node-account = { path = "node/account" } @@ -64,18 +145,104 @@ mina-p2p-messages = { path = "mina-p2p-messages" } mina-poseidon = { git = "https://github.com/o1-labs/proof-systems", rev = "0b0fd5fe73964d2a3628c788e40ead819a8a806d" } mina-producer-dashboard = { path = "producer-dashboard" } mina-signer = { git = "https://github.com/o1-labs/proof-systems", rev = "0b0fd5fe73964d2a3628c788e40ead819a8a806d" } -num-bigint = { git = "https://github.com/openmina/num-bigint", branch = "rebase-onstack" } # branch: rebase-onstack +mio = { version = "1.0.4", features = ["os-poll", "net"] } +multiaddr = "0.18.1" +multihash = { version = "0.18.1", features = ["blake2b"] } +nix = { version = "0.27.1", features = ["process", "signal"] } +nom = "8.0.0" +num = { version = "0.4", features = ["std"] } +num-bigint = { git = "https://github.com/openmina/num-bigint", branch = "rebase-onstack" } +num-traits = "0.2" +num_cpus = "1.0" +num_enum = "0.5.7" o1-utils = { git = "https://github.com/o1-labs/proof-systems", rev = "0b0fd5fe73964d2a3628c788e40ead819a8a806d" } +object = "0.37.1" +ocaml-interop = { git = "https://github.com/sebastiencs/ocaml-interop.git", branch = "closure-values" } +once_cell = "1" +p256 = { version = "0.13", features = ["default", "ecdh", "ecdsa"] } +p384 = "0.13" +pcap = "2.3" +pin-project-lite = "0.2.10" poly-commitment = { git = "https://github.com/o1-labs/proof-systems", rev = "0b0fd5fe73964d2a3628c788e40ead819a8a806d" } poseidon = { path = "poseidon" } +postcard = { version = "1.0.9", features = ["use-std"] } +proc-macro2 = "1.0.95" +prost = "0.12.4" +prost-build = "0.14.1" +quick-protobuf = "0.8.1" +quote = "1.0.35" +rand = "0.8" +rand_distr = "0.4.3" +rand_pcg = "0.3" +rand_seeder = "0.2" +rayon = "1.5" +rcgen = { version = "0.13", features = ["pem", "x509-parser"] } redux = { git = "https://github.com/o1-labs/redux-rs.git", rev = "06c8366", features = [ "serde", ] } +regex = "1" +reqwest = { version = "0.12.8", features = ["blocking", "json"] } +ring_buffer = "2.0.2" +rsa = "0.9" +rsexp = "0.2.3" +rsexp-derive = "0.2.3" +rsprocmaps = "0.3.2" +rust-format = "0.3" +salsa20 = "0.10.2" serde = { version = "1.0.190", features = ["derive", "rc"] } +serde_bytes = "0.11" serde_json = "1.0.107" serde_with = { version = "3.7.0", features = ["hex"] } +sha2 = "0.10" +sha3 = "0.10.8" +shellexpand = "3.1.0" +similar = "2.6.0" +slab = { version = "0.4.7", features = ["serde"] } +sled = "0.34" +smallvec = "1.10.0" +sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "json"] } static_assertions = "1.1.0" +structopt = "0.3.26" +strum = "0.26.2" +strum_macros = "0.26.4" +sudo = "0.6.0" +syn = "2.0.53" +temp-dir = "0.1.11" +tempfile = "3.8.0" +text-diff = "0.4.0" +thiserror = "1.0.60" +tikv-jemallocator = "0.6" +time = { version = "0.3.36", features = ["formatting", "macros", "parsing"] } +tokio = { version = "1.26.0" } +toml = "0.5.9" +tower-http = { version = "0.6", features = ["cors", "fs"] } +tracing = "0.1.40" +tracing-appender = "0.2.3" +tracing-log = "0.2.0" +tracing-subscriber = { version = "0.3.18", features = ["json", "env-filter"] } +tracing-wasm = "0.2" +tuple-map = "0.4.0" +unsigned-varint = "0.8.0" +url = "2.3.1" +uuid = { version = "1", features = ["v4"] } +vergen = { version = "8.2.4", features = [ + "build", + "cargo", + "git", + "gitcl", + "rustc", +] } vrf = { path = "vrf" } +warp = "0.3" +wasm-bindgen = "0.2" +wasm-bindgen-futures = "0.4" +wasm-bindgen-test = "0.3.33" +wasm_thread = { version = "0.3", features = ["es_modules"] } +web-sys = { version = "0.3.64" } +webrtc = { git = "https://github.com/openmina/webrtc.git", rev = "aeaa62682b97f6984627bedd6e6811fe17af18eb" } +x25519-dalek = { version = "2.0.1", features = ["static_secrets"] } +zeroize = "1.8" +zstd = "0.12" # UNCOMMENTED_IN_CI mina-curves = { git = "https://github.com/o1-labs/proof-systems", rev = "d1912bca54d2609296b9af9d09ad1ef78702e203", features = [ "32x9" ] } # UNCOMMENTED_IN_CI ark-ff = { git = "https://github.com/openmina/algebra", branch = "rebase-fix-openmina-webnode", features = ["parallel", "asm", "std", "32x9" ] } diff --git a/cli/Cargo.toml b/cli/Cargo.toml index bd1abaaba..cfa97b13a 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -9,43 +9,43 @@ name = "mina" path = "src/main.rs" [dependencies] -hex = "0.4" +hex = { workspace = true } ledger = { workspace = true } -libp2p-identity = { version = "=0.2.7", features = ["peerid"] } +libp2p-identity = { workspace = true, features = ["peerid"] } mina-p2p-messages = { workspace = true } -num_cpus = "1.0" -rand = "0.8.0" -rayon = "1.5" +num_cpus = { workspace = true } +rand = { workspace = true } +rayon = { workspace = true } redux = { workspace = true } -serde = "1.0.158" -sha2 = "0.10" -tokio = { version = "1.26.0" } +serde = { workspace = true } +sha2 = { workspace = true } +tokio = { workspace = true } vrf = { workspace = true } -anyhow = "1.0.81" -clap = { version = "4.3", features = ["derive", "env"] } -console = "0.15.5" -reqwest = { version = "0.11.24", features = ["blocking", "json"] } -time = { version = "0.3", features = ["formatting", "macros", "parsing"] } +anyhow = { workspace = true } +clap = { workspace = true, features = ["derive", "env"] } +console = { workspace = true } +reqwest = { workspace = true, features = ["blocking", "json"] } +time = { workspace = true } -backtrace = "0.3" -bytes = "1.4.0" -dialoguer = "0.10.4" +backtrace = { workspace = true } +bytes = { workspace = true } +dialoguer = { workspace = true } mina-core = { path = "../core" } -mina-node-account = { path = "../node/account" } +mina-node-account = { workspace = true } mina-node-native = { path = "../node/native" } -nix = { version = "0.26.2", features = ["signal"] } +nix = { workspace = true, features = ["signal"] } node = { path = "../node", features = ["replay"] } -serde_json = "1.0.107" -shellexpand = "3.1.0" -tracing = "0.1.37" +serde_json = { workspace = true } +shellexpand = { workspace = true } +tracing = { workspace = true } [target.'cfg(not(target_family = "wasm"))'.dependencies] redux = { workspace = true, features = ["serializable_callbacks"] } -tikv-jemallocator = "0.6" +tikv-jemallocator = { workspace = true } [dev-dependencies] -tempfile = "3.8.0" +tempfile = { workspace = true } [features] default = ["p2p-libp2p", "p2p-webrtc"] diff --git a/core/Cargo.toml b/core/Cargo.toml index a8d23ccbc..b236715bf 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -5,36 +5,36 @@ edition = "2021" license = "Apache-2.0" [dependencies] -argon2 = { version = "0.5.3", features = ["std"] } -base64 = "0.22" -binprot = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } -binprot_derive = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } -bs58 = "0.4.0" -crypto_secretbox = { version = "0.1.1", features = ["std"] } -flume = { version = "0.11.1", features = ["async", "spin"] } -lazy_static = "1.4.0" -md5 = "0.7.0" +argon2 = { workspace = true } +base64 = { workspace = true } +binprot = { workspace = true } +binprot_derive = { workspace = true } +bs58 = { workspace = true } +crypto_secretbox = { workspace = true } +flume = { workspace = true } +lazy_static = { workspace = true } +md5 = { workspace = true } mina-fuzzer = { path = "../fuzzer", optional = true } mina-macros = { path = "../macros" } -multihash = { version = "0.18.1", features = ["blake2b"] } -once_cell = "1" -rand = "0.8.0" +multihash = { workspace = true } +once_cell = { workspace = true } +rand = { workspace = true } redux = { workspace = true } -serde = { version = "1.0.147", features = ["rc"] } -serde_json = "1.0" -sha2 = "0.10.6" -slab = { version = "0.4.7", features = ["serde"] } -thiserror = "1.0.37" -time = { version = "0.3", features = ["formatting", "macros", "parsing"] } -tokio = { version = "1.26", features = ["sync"] } -tracing = { version = "0.1", features = ["std"] } +serde = { workspace = true, features = ["rc"] } +serde_json = { workspace = true } +sha2 = { workspace = true } +slab = { workspace = true } +thiserror = { workspace = true } +time = { workspace = true } +tokio = { workspace = true, features = ["sync"] } +tracing = { workspace = true } graphannis-malloc_size_of = { workspace = true } graphannis-malloc_size_of_derive = { workspace = true } ark-ff = { workspace = true } -hex = "0.4.3" -libp2p-identity = { version = "=0.2.7", features = ["serde", "peerid"] } +hex = { workspace = true } +libp2p-identity = { workspace = true, features = ["serde", "peerid"] } mina-curves = { workspace = true } mina-hasher = { workspace = true } mina-p2p-messages = { workspace = true } @@ -44,14 +44,14 @@ poseidon = { workspace = true } redux = { workspace = true, features = ["serializable_callbacks"] } [target.'cfg(target_family = "wasm")'.dependencies] -wasm-bindgen = "0.2.99" -wasm-bindgen-futures = "0.4.49" -wasm_thread = { version = "0.3", features = ["es_modules"] } -js-sys = "0.3" -web-sys = { version = "0.3", features = ["Window", "Response"] } +wasm-bindgen = { workspace = true } +wasm-bindgen-futures = { workspace = true } +wasm_thread = { workspace = true } +js-sys = { workspace = true } +web-sys = { workspace = true, features = ["Window", "Response"] } [dev-dependencies] -serde_json = { version = "1" } +serde_json = { workspace = true } [features] fuzzing = ["mina-fuzzer"] diff --git a/fuzzer/Cargo.toml b/fuzzer/Cargo.toml index 249fd81b6..297372419 100644 --- a/fuzzer/Cargo.toml +++ b/fuzzer/Cargo.toml @@ -5,8 +5,8 @@ edition = "2021" license = "Apache-2.0" [dependencies] -lazy_static = "1.4.0" -rand = { version = "0.8", features = ["small_rng"] } -rand_distr = "0.4.3" -serde = { workspace = true, features = ["derive"] } +lazy_static = { workspace = true } +rand = { workspace = true, features = ["small_rng"] } +rand_distr = { workspace = true } +serde = { workspace = true } serde_json = { workspace = true } diff --git a/ledger/Cargo.toml b/ledger/Cargo.toml index cf17a011a..868be11b2 100644 --- a/ledger/Cargo.toml +++ b/ledger/Cargo.toml @@ -29,74 +29,72 @@ o1-utils = { workspace = true } poly-commitment = { workspace = true } poseidon = { workspace = true } redux = { workspace = true } -strum = "0.26.2" -strum_macros = "0.26.4" +strum = { workspace = true } +strum_macros = { workspace = true } -bs58 = "0.4.0" +bs58 = { workspace = true } mina-p2p-messages = { workspace = true } -base64 = "0.13" -lazy_static = "1.4.0" -libc = "0.2" -sha2 = "0.10" +base64 = { workspace = true } +lazy_static = { workspace = true } +libc = { workspace = true } +sha2 = { workspace = true } # oracle = { path = "../oracle" } # mina-curves = { path = "../curves" } # o1-utils = { path = "../utils" } -itertools = "0.12" +itertools = { workspace = true } -ark-ec.workspace = true -ark-ff.workspace = true -ark-poly.workspace = true -ark-serialize.workspace = true +ark-ec = { workspace = true } +ark-ff = { workspace = true } +ark-poly = { workspace = true } +ark-serialize = { workspace = true } -rayon = "1.5" +rayon = { workspace = true } -bitvec = "1.0.0" -hex = "0.4.3" -num-bigint.workspace = true +bitvec = { workspace = true } +hex = { workspace = true } +num-bigint = { workspace = true } -once_cell = "1" -rand = { version = "0.8", features = ["small_rng"] } -uuid = { version = "1", features = ["v4"] } +once_cell = { workspace = true } +rand = { workspace = true, features = ["small_rng"] } +uuid = { workspace = true } -postcard = { version = "1.0.9", features = ["use-std"] } -serde = { version = "1.0", features = ["rc"] } -serde_json = { version = "1.0", features = ["float_roundtrip"] } +postcard = { workspace = true } +serde = { workspace = true, features = ["rc"] } +serde_json = { workspace = true, features = ["float_roundtrip"] } -anyhow = "1.0.75" -backtrace = "0.3" -blake2 = "0.10" -crc32fast = "1" -derive_more = "0.99.17" -fraction = { version = "=0.15.1", default-features = false, features = [ - "with-serde-support", -] } -serde_with = "3.6.1" -thiserror = "1.0.60" +anyhow = { workspace = true } +backtrace = { workspace = true } +blake2 = { workspace = true } +crc32fast = { workspace = true } +derive_more = { workspace = true } +fraction = { workspace = true } +serde_with = { workspace = true } +thiserror = { workspace = true } [target.'cfg(target_family = "wasm")'.dependencies] -getrandom = { version = "0.2", features = ["js"] } -wasm-bindgen = "0.2" -wasm-bindgen-futures = "0.4" +getrandom = { workspace = true, features = ["js"] } +wasm-bindgen = { workspace = true } +wasm-bindgen-futures = { workspace = true } [target.'cfg(not(target_family = "wasm"))'.dependencies] -zstd = { version = "0.12", optional = true } +zstd = { workspace = true, optional = true } # ocaml-interop = { path = "/home/sebastien/github/ocaml-interop", optional = true } -ocaml-interop = { git = "https://github.com/sebastiencs/ocaml-interop.git", branch = "closure-values", optional = true } +ocaml-interop = { workspace = true, optional = true } # ocaml-interop = { git = "https://github.com/tizoc/ocaml-interop.git", branch = "closure-values", optional = true } -reqwest = { version = "0.11.24", features = ["blocking"] } +reqwest = { workspace = true, features = ["blocking"] } [dev-dependencies] -rand_pcg = "0.3" -rand_seeder = "0.2" -tuple-map = "0.4.0" -rsa = "0.9" +rand_pcg = { workspace = true } +rand_seeder = { workspace = true } +tuple-map = { workspace = true } +rsa = { workspace = true } [target.'cfg(target_family = "wasm")'.dev-dependencies] -wasm-bindgen-test = "0.3.0" -web-sys = { version = "0.3", features = [ +wasm-bindgen-test = { workspace = true } +web-sys = { workspace = true, features = [ "Blob", "DedicatedWorkerGlobalScope", "MessageEvent", diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 38aa9f21d..7054f9d0a 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -9,12 +9,12 @@ authors = ["Alexander Koptelov "] proc-macro = true [dependencies] -proc-macro2 = "1.0.95" -quote = "1.0.35" -syn = "2.0.53" +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true } [dev-dependencies] mina-core = { path = "../core" } -tracing = "0.1.40" -rust-format = { version = "0.3", features = ["token_stream"] } -anyhow = "1.0.81" +tracing = { workspace = true } +rust-format = { workspace = true, features = ["token_stream"] } +anyhow = { workspace = true } diff --git a/mina-p2p-messages/Cargo.toml b/mina-p2p-messages/Cargo.toml index 7eaf2be47..3c0db617c 100644 --- a/mina-p2p-messages/Cargo.toml +++ b/mina-p2p-messages/Cargo.toml @@ -8,23 +8,23 @@ license = "Apache-2.0" [dependencies] ark-serialize = { workspace = true } -base64 = "0.22" -binprot = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } -binprot_derive = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } -blake2 = { version = "0.10" } -bs58 = { version = "0.4", features = ["check"] } -derive_more = "0.99.17" -hex = "0.4.3" -lazy_static = "1.4.0" -num-bigint = "0.4.6" +base64 = { workspace = true } +binprot = { workspace = true } +binprot_derive = { workspace = true } +blake2 = { workspace = true } +bs58 = { workspace = true, features = ["check"] } +derive_more = { workspace = true } +hex = { workspace = true } +lazy_static = { workspace = true } +num-bigint = { workspace = true } serde = { workspace = true } -serde_bytes = "0.11" -serde_json = { version = "1.0.83" } -sha2 = { version = "0.10.2" } -strum = "0.26.2" -strum_macros = "0.26.4" -thiserror = "1.0.32" -time = "0.3.36" +serde_bytes = { workspace = true } +serde_json = { workspace = true } +sha2 = { workspace = true } +strum = { workspace = true } +strum_macros = { workspace = true } +thiserror = { workspace = true } +time = { workspace = true } mina-macros = { path = "../macros" } @@ -35,24 +35,24 @@ o1-utils = { workspace = true } poseidon = { workspace = true } ark-ff = { workspace = true } -rsexp = "0.2.3" -rsexp-derive = "0.2.3" +rsexp = { workspace = true } +rsexp-derive = { workspace = true } graphannis-malloc_size_of = { workspace = true } graphannis-malloc_size_of_derive = { workspace = true } [target.'cfg(fuzzing)'.dev-dependencies] -fuzzcheck = "0.12.1" +fuzzcheck = { workspace = true } [dev-dependencies] -wasm-bindgen = "0.2" -anyhow = "1.0.65" -toml = "0.5.9" -clap = { version = "4.0.18", features = ["derive"] } -alloc-test = { git = "https://github.com/openmina/alloc-test.git" } -time = { version = "0.3.17", features = ["formatting"] } +wasm-bindgen = { workspace = true } +anyhow = { workspace = true } +toml = { workspace = true } +clap = { workspace = true, features = ["derive"] } +alloc-test = { workspace = true } +time = { workspace = true, features = ["formatting"] } [target.wasm32-unknown-unknown.dev-dependencies] -web-sys = { version = "0.3.60", features = ["console"] } -wasm-bindgen-test = "0.3.33" -wasm-bindgen = "0.2" +web-sys = { workspace = true, features = ["console"] } +wasm-bindgen-test = { workspace = true } +wasm-bindgen = { workspace = true } diff --git a/node/Cargo.toml b/node/Cargo.toml index 5309b2ded..75a9e50d5 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -8,33 +8,33 @@ license = "Apache-2.0" workspace = true [dependencies] -anyhow = "1.0.70" +anyhow = { workspace = true } ark-ff = { workspace = true } -base64 = "0.22" -blake2 = "0.10" -derive_more = "0.99.17" -hex = "0.4" -lazy_static = "1.4.0" +base64 = { workspace = true } +blake2 = { workspace = true } +derive_more = { workspace = true } +hex = { workspace = true } +lazy_static = { workspace = true } ledger = { workspace = true } mina-curves = { workspace = true } mina-hasher = { workspace = true } mina-p2p-messages = { workspace = true } mina-signer = { workspace = true } -multihash = { version = "0.18.1", features = ["blake2b"] } -num_enum = "0.5.7" +multihash = { workspace = true } +num_enum = { workspace = true } poseidon = { workspace = true } -rand = "0.8.0" +rand = { workspace = true } redux = { workspace = true } -serde = "1.0.147" -serde_json = { version = "1.0.82", features = [ +serde = { workspace = true } +serde_json = { workspace = true, features = [ "unbounded_depth", "arbitrary_precision", ] } -serde_with = { version = "3.6.1", features = ["time_0_3"] } -strum = "0.26.2" -strum_macros = "0.26.4" -thiserror = "1.0.37" -time = { version = "0.3.36", features = ["parsing"] } +serde_with = { workspace = true, features = ["time_0_3"] } +strum = { workspace = true } +strum_macros = { workspace = true } +thiserror = { workspace = true } +time = { workspace = true, features = ["parsing"] } vrf = { workspace = true } graphannis-malloc_size_of = { workspace = true } @@ -43,28 +43,22 @@ graphannis-malloc_size_of_derive = { workspace = true } mina-core = { path = "../core" } mina-node-account = { workspace = true } p2p = { path = "../p2p" } -postcard = { version = "1.0.9", features = ["use-std"] } +postcard = { workspace = true } snark = { path = "../snark" } -static_assertions.workspace = true -tokio = { version = "1.26.0" } +static_assertions = { workspace = true } +tokio = { workspace = true } [build-dependencies] -regex = "1" -rust-format = "0.3" -vergen = { version = "8.2.4", features = [ - "build", - "cargo", - "git", - "gitcl", - "rustc", -] } +regex = { workspace = true } +rust-format = { workspace = true } +vergen = { workspace = true } [target.'cfg(not(target_family = "wasm"))'.dependencies] linkme = { workspace = true } redux = { workspace = true, features = ["serializable_callbacks"] } [target.'cfg(target_family = "wasm")'.dependencies] -wasm-bindgen = "0.2" +wasm-bindgen = { workspace = true } [features] serializable_callbacks = [] diff --git a/node/account/Cargo.toml b/node/account/Cargo.toml index aa24307e8..0e6839012 100644 --- a/node/account/Cargo.toml +++ b/node/account/Cargo.toml @@ -5,18 +5,18 @@ edition = "2021" license = "Apache-2.0" [dependencies] -anyhow = "1.0.70" -bs58 = "0.4.0" -hex = "0.4.3" -lazy_static = "1.4.0" +anyhow = { workspace = true } +bs58 = { workspace = true } +hex = { workspace = true } +lazy_static = { workspace = true } mina-core = { path = "../../core" } mina-hasher = { workspace = true } mina-p2p-messages = { workspace = true } mina-signer = { workspace = true } -rand = "0.8" -serde = "1.0.147" -serde_json = { version = "1.0.82", features = [ +rand = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true, features = [ "unbounded_depth", "arbitrary_precision", ] } -thiserror = "1.0.37" +thiserror = { workspace = true } diff --git a/node/common/Cargo.toml b/node/common/Cargo.toml index 1948f8d14..88f5e6f85 100644 --- a/node/common/Cargo.toml +++ b/node/common/Cargo.toml @@ -5,52 +5,48 @@ edition = "2021" license = "Apache-2.0" [dependencies] -anyhow = "1" +anyhow = { workspace = true } ark-ff = { workspace = true } -binprot = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } -binprot_derive = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } -bitflags = "2.8.0" -jsonpath-rust = "0.5.0" +binprot = { workspace = true } +binprot_derive = { workspace = true } +bitflags = { workspace = true } +jsonpath-rust = { workspace = true } ledger = { workspace = true } mina-p2p-messages = { workspace = true } mina-signer = { workspace = true } -rand = "0.8" -rayon = "1.5" -serde = "1.0.158" -serde_json = "1.0.94" -sha3 = "0.10.8" -thiserror = "1.0.44" -tokio = { version = "1.26.0", features = ["time", "macros"] } -tracing = "0.1.37" +rand = { workspace = true } +rayon = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +sha3 = { workspace = true } +thiserror = { workspace = true } +tokio = { workspace = true, features = ["time", "macros"] } +tracing = { workspace = true } vrf = { workspace = true } mina-core = { path = "../../core" } node = { path = "../../node", features = ["replay"] } -rsa = "0.9" +rsa = { workspace = true } [target.'cfg(target_family = "wasm")'.dependencies] redux = { workspace = true } -wasm-bindgen = "0.2" -wasm-bindgen-futures = "0.4" -gloo-timers = { version = "0.3", features = ["futures"] } -gloo-utils = "0.2" -tracing-wasm = "0.2" +wasm-bindgen = { workspace = true } +wasm-bindgen-futures = { workspace = true } +gloo-timers = { workspace = true } +gloo-utils = { workspace = true } +tracing-wasm = { workspace = true } [target.'cfg(not(target_family = "wasm"))'.dependencies] redux = { workspace = true, features = ["serializable_callbacks"] } -tracing-subscriber = { version = "0.3.17", features = ["json", "env-filter"] } -tracing-appender = "0.2.3" -libp2p-identity = { version = "=0.2.7", features = [ - "ed25519", - "rand", - "serde", -] } -mio = { version = "1.0.4", features = ["os-poll", "net"] } -reqwest = { version = "0.12.8", features = ["blocking", "json"] } -aws-config = { version = "1.1.7", features = ["behavior-version-latest"] } -aws-sdk-s3 = "1.73.0" -google-cloud-storage = "0.24.0" -google-cloud-auth = "0.17.2" +tracing-subscriber = { workspace = true } +tracing-appender = { workspace = true } +libp2p-identity = { workspace = true, features = ["ed25519", "rand", "serde"] } +mio = { workspace = true } +reqwest = { workspace = true } +aws-config = { workspace = true } +aws-sdk-s3 = { workspace = true } +google-cloud-storage = { workspace = true } +google-cloud-auth = { workspace = true } [features] diff --git a/node/invariants/Cargo.toml b/node/invariants/Cargo.toml index 32d26b05d..88a45f1dc 100644 --- a/node/invariants/Cargo.toml +++ b/node/invariants/Cargo.toml @@ -9,17 +9,17 @@ name = "mina_node_invariants" path = "src/lib.rs" [dependencies] -documented = { version = "0.6" } -lazy_static = "1.4.0" +documented = { workspace = true } +lazy_static = { workspace = true } node = { path = "../" } redux = { workspace = true } -serde = "1.0.147" -serde_json = { version = "1.0.82", features = [ +serde = { workspace = true } +serde_json = { workspace = true, features = [ "unbounded_depth", "arbitrary_precision", ] } -strum = "0.26" -strum_macros = "0.26" +strum = { workspace = true } +strum_macros = { workspace = true } [target.'cfg(not(target_family = "wasm"))'.dependencies] redux = { workspace = true, features = ["serializable_callbacks"] } diff --git a/node/native/Cargo.toml b/node/native/Cargo.toml index 7ca424d88..c98460630 100644 --- a/node/native/Cargo.toml +++ b/node/native/Cargo.toml @@ -5,37 +5,37 @@ edition = "2021" license = "Apache-2.0" [dependencies] -anyhow = "1.0.70" -bs58 = { version = "0.4" } -bytes = "1.4.0" -dataloader = "0.18" -derive_more = "0.99.17" -getrandom = "0.2.15" -hex = { version = "0.4.3" } -jsonpath-rust = "0.5.0" +anyhow = { workspace = true } +bs58 = { workspace = true } +bytes = { workspace = true } +dataloader = { workspace = true } +derive_more = { workspace = true } +getrandom = { workspace = true } +hex = { workspace = true } +jsonpath-rust = { workspace = true } juniper = { workspace = true } -juniper_warp = { version = "0.8.0" } +juniper_warp = { workspace = true } ledger = { workspace = true } -libp2p-identity = { version = "=0.2.7", features = ["peerid"] } +libp2p-identity = { workspace = true, features = ["peerid"] } mina-p2p-messages = { workspace = true } mina-signer = { workspace = true } -nix = { version = "0.26.2", features = ["signal"] } +nix = { workspace = true, features = ["signal"] } o1-utils = { workspace = true } -rand = "0.8" -rayon = "1.5" +rand = { workspace = true } +rayon = { workspace = true } redux = { workspace = true, features = ["serializable_callbacks"] } -reqwest = { version = "0.11.24", features = ["blocking", "json"] } -serde = "1.0.158" -serde_json = "1.0.94" -sha3 = "0.10.8" -strum = "0.26.2" -strum_macros = "0.26.4" -thiserror = "1.0.44" -tokio = { version = "1.26.0", features = ["process", "macros"] } -tracing = "0.1.37" -tracing-subscriber = { version = "0.3.17", features = ["json", "env-filter"] } +reqwest = { workspace = true, features = ["blocking", "json"] } +serde = { workspace = true } +serde_json = { workspace = true } +sha3 = { workspace = true } +strum = { workspace = true } +strum_macros = { workspace = true } +thiserror = { workspace = true } +tokio = { workspace = true, features = ["process", "macros"] } +tracing = { workspace = true } +tracing-subscriber = { workspace = true } vrf = { workspace = true } -warp = "0.3" +warp = { workspace = true } mina-core = { path = "../../core" } mina-node-common = { path = "../common" } diff --git a/node/testing/Cargo.toml b/node/testing/Cargo.toml index 80690e1ab..4c75179b7 100644 --- a/node/testing/Cargo.toml +++ b/node/testing/Cargo.toml @@ -13,14 +13,14 @@ name = "mina-node-testing" path = "src/main.rs" [dependencies] -anyhow = "1.0.70" -axum = "0.7" -base64 = "0.22" -bs58 = { version = "0.4" } -derive_more = "0.99.17" -documented = { version = "0.6", optional = true } -hex = "0.4.3" -lazy_static = "1.4.0" +anyhow = { workspace = true } +axum = { workspace = true } +base64 = { workspace = true } +bs58 = { workspace = true } +derive_more = { workspace = true } +documented = { workspace = true, optional = true } +hex = { workspace = true } +lazy_static = { workspace = true } ledger = { workspace = true } libp2p = { workspace = true, features = [ "macros", @@ -36,34 +36,34 @@ libp2p = { workspace = true, features = [ "kad", ] } mina-p2p-messages = { workspace = true } -multiaddr = { version = "0.18.1" } -multihash = "0.18.1" -num_cpus = "1.0" -postcard = { version = "1.0.9", features = ["use-std"] } -rand = "0.8" -rayon = "1.5" +multiaddr = { workspace = true } +multihash = { workspace = true } +num_cpus = { workspace = true } +postcard = { workspace = true } +rand = { workspace = true } +rayon = { workspace = true } redux = { workspace = true } -serde = "1.0.147" -serde_json = { version = "1.0.82", features = [ +serde = { workspace = true } +serde_json = { workspace = true, features = [ "unbounded_depth", "arbitrary_precision", ] } -strum = "0.26" -strum_macros = "0.26" -thiserror = "1.0.37" -time = { version = "0.3", features = ["formatting"] } -tokio = { version = "1.26.0" } -tower-http = { version = "0.6", features = ["cors", "fs"] } -tracing = { version = "0.1", features = ["std"] } -tracing-log = "0.2.0" +strum = { workspace = true } +strum_macros = { workspace = true } +thiserror = { workspace = true } +time = { workspace = true, features = ["formatting"] } +tokio = { workspace = true } +tower-http = { workspace = true } +tracing = { workspace = true } +tracing-log = { workspace = true } vrf = { workspace = true } -clap = { version = "4.3", features = ["derive", "env"] } -console = "0.15.5" -ctrlc = "3.4.2" -nix = { version = "0.27.1", features = ["process", "signal"] } -reqwest = { version = "0.11.22", features = ["blocking", "json"] } -temp-dir = "0.1.11" +clap = { workspace = true, features = ["derive", "env"] } +console = { workspace = true } +ctrlc = { workspace = true } +nix = { workspace = true } +reqwest = { workspace = true, features = ["blocking", "json"] } +temp-dir = { workspace = true } mina-core = { path = "../../core" } mina-node-invariants = { path = "../../node/invariants" } @@ -72,11 +72,7 @@ node = { path = "../../node" } [target.'cfg(not(target_family = "wasm"))'.dependencies] redux = { workspace = true, features = ["serializable_callbacks"] } -libp2p-identity = { version = "=0.2.7", features = [ - "ed25519", - "rand", - "serde", -] } +libp2p-identity = { workspace = true, features = ["ed25519", "rand", "serde"] } [features] default = ["p2p-libp2p", "scenario-generators"] diff --git a/node/web/Cargo.toml b/node/web/Cargo.toml index 9a9984bfe..df51c2c95 100644 --- a/node/web/Cargo.toml +++ b/node/web/Cargo.toml @@ -8,28 +8,28 @@ license = "Apache-2.0" crate-type = ["cdylib", "rlib"] [dependencies] -derive_more = "0.99.17" -rand = "0.8" -rayon = "1.5" -serde = "1.0.158" -serde_json = "1.0.94" +derive_more = { workspace = true } +rand = { workspace = true } +rayon = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } # reqwest = { version = "0.11.24", features = ["json"] } -anyhow = "1.0.70" -bytes = "1.4.0" -jsonpath-rust = "0.5.0" +anyhow = { workspace = true } +bytes = { workspace = true } +jsonpath-rust = { workspace = true } ledger = { workspace = true } -libp2p-identity = { version = "=0.2.7", features = ["peerid"] } +libp2p-identity = { workspace = true, features = ["peerid"] } mina-p2p-messages = { workspace = true } mina-signer = { workspace = true } redux = { workspace = true } -thiserror = "1.0.44" +thiserror = { workspace = true } vrf = { workspace = true } -console_error_panic_hook = "0.1" -gloo-utils = "0.2" -js-sys = "0.3" -wasm-bindgen = "0.2" -wasm-bindgen-futures = "0.4" +console_error_panic_hook = { workspace = true } +gloo-utils = { workspace = true } +js-sys = { workspace = true } +wasm-bindgen = { workspace = true } +wasm-bindgen-futures = { workspace = true } mina-node-common = { path = "../common" } node = { path = "../../node" } diff --git a/p2p/Cargo.toml b/p2p/Cargo.toml index 599c3d0c8..2220a7f69 100644 --- a/p2p/Cargo.toml +++ b/p2p/Cargo.toml @@ -5,98 +5,88 @@ edition = "2021" license = "Apache-2.0" [dependencies] -aes-gcm = "0.10.3" -anyhow = "1.0.70" -base64 = "0.22" -binprot = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } -binprot_derive = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } -bitflags = { version = "2.4.1", features = ["serde"] } -bs58 = "0.4.0" -bytes = "*" -cfg-if = "1.0.0" -derive_more = "0.99.17" -ed25519-dalek = { version = "2.1.1", features = ["serde", "pem"] } -faster-stun = { version = "1.0.1", optional = true } -hex = { version = "0.4.3" } -multihash = "0.18.1" -rand = { version = "0.8", features = ["small_rng"] } -reqwest = { version = "0.11.22", optional = true } +aes-gcm = { workspace = true } +anyhow = { workspace = true } +base64 = { workspace = true } +binprot = { workspace = true } +binprot_derive = { workspace = true } +bitflags = { workspace = true, features = ["serde"] } +bs58 = { workspace = true } +bytes = { workspace = true } +cfg-if = { workspace = true } +derive_more = { workspace = true } +ed25519-dalek = { workspace = true } +faster-stun = { workspace = true, optional = true } +hex = { workspace = true } +multihash = { workspace = true } +rand = { workspace = true, features = ["small_rng"] } +reqwest = { workspace = true, optional = true } serde = { workspace = true } serde_json = { workspace = true } serde_with = { workspace = true } -sha2 = "0.10.6" -smallvec = "1.10.0" -strum = "0.26" -strum_macros = "0.26" -thiserror = "1.0.37" -unsigned-varint = { version = "0.8.0" } -url = "2.3.1" -x25519-dalek = { version = "2.0.1", features = ["static_secrets"] } +sha2 = { workspace = true } +smallvec = { workspace = true } +strum = { workspace = true } +strum_macros = { workspace = true } +thiserror = { workspace = true } +unsigned-varint = { workspace = true } +url = { workspace = true } +x25519-dalek = { workspace = true } graphannis-malloc_size_of = { workspace = true } graphannis-malloc_size_of_derive = { workspace = true } # crypto -blake2 = { version = "0.10.6" } -chacha20poly1305 = { version = "0.10.1" } -curve25519-dalek = { version = "4.1", features = ["legacy_compatibility"] } -hkdf = { version = "0.12.4" } -libp2p-identity = { version = "=0.2.7", features = [ - "ed25519", - "rand", - "serde", -] } -multiaddr = { version = "0.18.1" } -zeroize = { version = "1.8" } +blake2 = { workspace = true } +chacha20poly1305 = { workspace = true } +curve25519-dalek = { workspace = true } +hkdf = { workspace = true } +libp2p-identity = { workspace = true, features = ["ed25519", "rand", "serde"] } +multiaddr = { workspace = true } +zeroize = { workspace = true } mina-p2p-messages = { workspace = true } redux = { workspace = true } -crypto-bigint = { version = "0.5.5", features = [ - "generic-array", - "serde", - "alloc", -] } +crypto-bigint = { workspace = true } mina-core = { path = "../core" } mina-macros = { path = "../macros" } -quick-protobuf = "0.8.1" +quick-protobuf = { workspace = true } salsa-simple = { path = "../tools/salsa-simple" } -prost = { version = "0.12.4" } +prost = { workspace = true } mina-fuzzer = { path = "../fuzzer", optional = true } [build-dependencies] -prost-build = { version = "0.14.1" } +prost-build = { workspace = true } [dev-dependencies] -crypto-bigint = { version = "0.5.5", features = ["rand_core"] } -warp = "0.3.6" -tokio = { version = "1.26", features = ["macros", "rt-multi-thread"] } -clap = { version = "4.5.2", features = ["derive", "env"] } +crypto-bigint = { workspace = true, features = ["rand_core"] } +warp = { workspace = true } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } +clap = { workspace = true, features = ["derive", "env"] } p2p-testing = { path = "testing" } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] redux = { workspace = true, features = ["serializable_callbacks"] } -tokio = { version = "1.26", features = ["rt"] } -webrtc = { git = "https://github.com/openmina/webrtc.git", rev = "aeaa62682b97f6984627bedd6e6811fe17af18eb", optional = true } -datachannel = { git = "https://github.com/openmina/datachannel-rs.git", rev = "1bfb064d0ff3e54a93ae0288409902aab8d102d3", optional = true, features = [ - "vendored", -] } -rcgen = { version = "0.13", features = ["pem", "x509-parser"], optional = true } -reqwest = { version = "0.11", features = ["json"] } -mio = { version = "1.0.4", features = ["os-poll", "net"] } -libc = { version = "0.2.151" } -local-ip-address = "0.6.1" +tokio = { workspace = true, features = ["rt"] } +webrtc = { workspace = true, optional = true } +datachannel = { workspace = true, optional = true } +rcgen = { workspace = true, optional = true } +reqwest = { workspace = true, features = ["json"] } +mio = { workspace = true } +libc = { workspace = true } +local-ip-address = { workspace = true } [target.'cfg(target_arch = "wasm32")'.dependencies] -wasm-bindgen = "0.2" -wasm-bindgen-futures = "0.4" -gloo-timers = { version = "0.3", features = ["futures"] } -gloo-utils = "0.2" -js-sys = "0.3.64" -web-sys = { version = "0.3", features = [ +wasm-bindgen = { workspace = true } +wasm-bindgen-futures = { workspace = true } +gloo-timers = { workspace = true } +gloo-utils = { workspace = true } +js-sys = { workspace = true } +web-sys = { workspace = true, features = [ "MessageEvent", "RtcPeerConnection", "RtcConfiguration", @@ -114,8 +104,8 @@ web-sys = { version = "0.3", features = [ "Headers", "Response", ] } -tokio = { version = "1.26", features = ["macros"] } -getrandom = { version = "0.2", features = ["js"] } +tokio = { workspace = true, features = ["macros"] } +getrandom = { workspace = true, features = ["js"] } [features] serializable_callbacks = [] diff --git a/p2p/libp2p-rpc-behaviour/Cargo.toml b/p2p/libp2p-rpc-behaviour/Cargo.toml index 07786c4b6..643035ef6 100644 --- a/p2p/libp2p-rpc-behaviour/Cargo.toml +++ b/p2p/libp2p-rpc-behaviour/Cargo.toml @@ -6,5 +6,5 @@ license = "Apache-2.0" [dependencies] libp2p = { workspace = true } -log = { version = "0.4.19" } +log = { workspace = true } mina-p2p-messages = { workspace = true } diff --git a/p2p/testing/Cargo.toml b/p2p/testing/Cargo.toml index c553d8b7f..4954d4db9 100644 --- a/p2p/testing/Cargo.toml +++ b/p2p/testing/Cargo.toml @@ -10,9 +10,9 @@ mina-p2p-messages = { path = "../../mina-p2p-messages" } p2p = { path = "..", features = ["p2p-libp2p"] } redux = { workspace = true } -derive_more = "0.99.17" -futures = "0.3.30" -lazy_static = "1.4.0" +derive_more = { workspace = true } +futures = { workspace = true } +lazy_static = { workspace = true } libp2p = { workspace = true, features = [ "macros", "serde", @@ -28,19 +28,15 @@ libp2p = { workspace = true, features = [ ] } libp2p-rpc-behaviour = { path = "../libp2p-rpc-behaviour" } mina-core = { path = "../../core" } -pin-project-lite = "0.2" -rand = "0.8.5" -serde_json.workspace = true -thiserror = "1.0.57" -tokio = { version = "1.26.0", features = ["sync", "macros"] } -tracing = "0.1.40" -tracing-log = "0.2.0" -tracing-subscriber = "0.3.18" +pin-project-lite = { workspace = true } +rand = { workspace = true } +serde_json = { workspace = true } +thiserror = { workspace = true } +tokio = { workspace = true, features = ["sync", "macros"] } +tracing = { workspace = true } +tracing-log = { workspace = true } +tracing-subscriber = { workspace = true } [target.'cfg(not(target_family = "wasm"))'.dependencies] redux = { workspace = true, features = ["serializable_callbacks"] } -libp2p-identity = { version = "=0.2.7", features = [ - "ed25519", - "rand", - "serde", -] } +libp2p-identity = { workspace = true, features = ["ed25519", "rand", "serde"] } diff --git a/poseidon/Cargo.toml b/poseidon/Cargo.toml index 63af34457..a0b99ea04 100644 --- a/poseidon/Cargo.toml +++ b/poseidon/Cargo.toml @@ -8,8 +8,8 @@ workspace = true [dependencies] ark-ff = { workspace = true } -ark-serialize.workspace = true +ark-serialize = { workspace = true } mina-curves = { workspace = true } -o1-utils.workspace = true -once_cell = "1" -serde.workspace = true +o1-utils = { workspace = true } +once_cell = { workspace = true } +serde = { workspace = true } diff --git a/producer-dashboard/Cargo.toml b/producer-dashboard/Cargo.toml index f8efa53de..6d7a0619f 100644 --- a/producer-dashboard/Cargo.toml +++ b/producer-dashboard/Cargo.toml @@ -9,21 +9,21 @@ name = "mina-producer-dashboard" path = "src/bin/producer_dashboard.rs" [dependencies] -bincode = "1.3.3" -clap = { version = "4.5", features = ["derive"] } -dotenvy = "0.15" -graphql_client = { version = "0.14", features = ["reqwest"] } +bincode = { workspace = true } +clap = { workspace = true } +dotenvy = { workspace = true } +graphql_client = { workspace = true } mina-node-account = { workspace = true } mina-p2p-messages = { workspace = true } -num-bigint = "0.4" -num-traits = "0.2" +num-bigint = { workspace = true } +num-traits = { workspace = true } reqwest = { version = "0.11", features = ["json"] } -serde = { version = "1.0", features = ["derive"] } -serde_json = { version = "1.0.83" } -sled = "0.34" -sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "json"] } -thiserror = "1.0.44" -time = { version = "0.3", features = ["formatting", "parsing"] } -tokio = { version = "1", features = ["full"] } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +sled = { workspace = true } +sqlx = { workspace = true } +thiserror = { workspace = true } +time = { workspace = true } +tokio = { workspace = true, features = ["full"] } vrf = { workspace = true } -warp = "0.3" +warp = { workspace = true } diff --git a/snark/Cargo.toml b/snark/Cargo.toml index 396b1bf94..8dfc14104 100644 --- a/snark/Cargo.toml +++ b/snark/Cargo.toml @@ -14,23 +14,23 @@ mina-signer = { workspace = true } o1-utils = { workspace = true } poly-commitment = { workspace = true } -ark-ec.workspace = true -ark-poly.workspace = true -derive_more = "0.99.17" -hex = "0.4" +ark-ec = { workspace = true } +ark-poly = { workspace = true } +derive_more = { workspace = true } +hex = { workspace = true } ledger = { workspace = true } mina-p2p-messages = { workspace = true } -num-bigint = "0.4" -once_cell = "1" +num-bigint = { workspace = true } +once_cell = { workspace = true } poseidon = { workspace = true } -rand = "0.8" -rayon = "1.5" +rand = { workspace = true } +rayon = { workspace = true } redux = { workspace = true } -serde = { version = "1.0", features = ["rc"] } -serde_json = { version = "1.0", features = ["float_roundtrip"] } -sha2 = "0.10" -strum_macros = "0.26" -thiserror = "1.0.50" +serde = { workspace = true, features = ["rc"] } +serde_json = { workspace = true, features = ["float_roundtrip"] } +sha2 = { workspace = true } +strum_macros = { workspace = true } +thiserror = { workspace = true } mina-core = { path = "../core" } @@ -41,4 +41,4 @@ linkme = { workspace = true } redux = { workspace = true, features = ["serializable_callbacks"] } [target.'cfg(target_family = "wasm")'.dev-dependencies] -wasm-bindgen-test = "0.3.0" +wasm-bindgen-test = { workspace = true } diff --git a/tools/archive-breadcrumb-compare/Cargo.toml b/tools/archive-breadcrumb-compare/Cargo.toml index 46b4af235..dc0023d4f 100644 --- a/tools/archive-breadcrumb-compare/Cargo.toml +++ b/tools/archive-breadcrumb-compare/Cargo.toml @@ -4,12 +4,12 @@ version = "0.17.0" edition = "2021" [dependencies] -anyhow = "1.0" -binprot = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } -clap = { version = "4.5", features = ["derive", "env"] } +anyhow = { workspace = true } +binprot = { workspace = true } +clap = { workspace = true, features = ["derive", "env"] } mina-p2p-messages = { workspace = true } -reqwest = { version = "0.11", features = ["json"] } +reqwest = { workspace = true, features = ["json"] } serde = { workspace = true } -serde_json = "1.0" -similar = "2.6.0" -tokio = { version = "1.0", features = ["full"] } +serde_json = { workspace = true } +similar = { workspace = true } +tokio = { workspace = true, features = ["full"] } diff --git a/tools/bootstrap-sandbox/Cargo.toml b/tools/bootstrap-sandbox/Cargo.toml index 72b2d521b..3f3a13db2 100644 --- a/tools/bootstrap-sandbox/Cargo.toml +++ b/tools/bootstrap-sandbox/Cargo.toml @@ -4,20 +4,20 @@ version = "0.17.0" edition = "2021" [dependencies] -env_logger = { version = "0.11.2" } -log = { version = "0.4.17" } -serde = { version = "1.0" } -serde_json = { version = "1.0", features = ["preserve_order"] } -structopt = { version = "0.3.26" } -thiserror = { version = "1.0" } +env_logger = { workspace = true } +log = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true, features = ["preserve_order"] } +structopt = { workspace = true } +thiserror = { workspace = true } -base64 = { version = "0.22" } -bs58 = { version = "0.5.0", features = ["check"] } -rand = { version = "0.8.5" } +base64 = { workspace = true } +bs58 = { workspace = true, features = ["check"] } +rand = { workspace = true } -tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -binprot = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } +binprot = { workspace = true } ledger = { path = "../../ledger", package = "mina-tree" } libp2p-rpc-behaviour = { path = "../../p2p/libp2p-rpc-behaviour" } mina-core = { path = "../../core" } diff --git a/tools/fuzzing/Cargo.toml b/tools/fuzzing/Cargo.toml index d17ba373a..6a849607a 100644 --- a/tools/fuzzing/Cargo.toml +++ b/tools/fuzzing/Cargo.toml @@ -5,40 +5,40 @@ edition = "2021" [dependencies] -ark-ec.workspace = true +ark-ec = { workspace = true } ark-ff = { workspace = true } -ark-serialize = "0.4.2" -bitvec = "1.0.1" -btreemultimap = "0.1.1" -flate2 = "1.0.24" -leb128 = "0.2.1" +ark-serialize = { workspace = true } +bitvec = { workspace = true } +btreemultimap = { workspace = true } +flate2 = { workspace = true } +leb128 = { workspace = true } ledger = { path = "../../ledger", package = "mina-tree", features = [ "fuzzing", ] } -md5 = "0.7.0" +md5 = { workspace = true } mina-core = { path = "../../core" } mina-curves = { workspace = true } mina-hasher = { workspace = true } mina-p2p-messages = { workspace = true } mina-signer = { workspace = true } -object = "0.37.1" +object = { workspace = true } poseidon = { workspace = true } -rand = { version = "0.8.5", features = ["small_rng"] } -ring_buffer = "2.0.2" -rsprocmaps = "0.3.2" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" +rand = { workspace = true, features = ["small_rng"] } +ring_buffer = { workspace = true } +rsprocmaps = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } #ark-ff = { git = "https://github.com/openmina/algebra", branch = "openmina", features = [ "parallel", "asm", "std" ] } #ark-ec = { git = "https://github.com/openmina/algebra", branch = "openmina", features = [ "std" ] } -itertools = "0.12.0" -num-bigint = "0.4.0" -once_cell = "1.18.0" -text-diff = "0.4.0" -tuple-map = "0.4.0" +itertools = { workspace = true } +num-bigint = { workspace = true } +once_cell = { workspace = true } +text-diff = { workspace = true } +tuple-map = { workspace = true } #binprot = "0.1.7" -binprot = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } -binprot_derive = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" } -clap = "4.5.20" +binprot = { workspace = true } +binprot_derive = { workspace = true } +clap = { workspace = true } node = { path = "../../node" } [profile.release] diff --git a/tools/gossipsub-sandbox/Cargo.toml b/tools/gossipsub-sandbox/Cargo.toml index 24f01831f..2a942d34f 100644 --- a/tools/gossipsub-sandbox/Cargo.toml +++ b/tools/gossipsub-sandbox/Cargo.toml @@ -4,13 +4,13 @@ version = "0.17.0" edition = "2021" [dependencies] -bs58 = { version = "0.5.0", features = ["check"] } -env_logger = { version = "0.11.3" } -log = { version = "0.4.17" } -rand = { version = "0.8.5" } -structopt = { version = "0.3.26" } +bs58 = { workspace = true, features = ["check"] } +env_logger = { workspace = true } +log = { workspace = true } +rand = { workspace = true } +structopt = { workspace = true } -tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } libp2p = { workspace = true } mina-transport = { path = "../transport" } diff --git a/tools/hash-tool/Cargo.toml b/tools/hash-tool/Cargo.toml index 6d1eab09b..fa66126ec 100644 --- a/tools/hash-tool/Cargo.toml +++ b/tools/hash-tool/Cargo.toml @@ -4,6 +4,6 @@ version = "0.17.0" edition = "2021" [dependencies] -bs58 = { version = "0.5.0", features = ["check"] } -hex = { version = "0.4.3" } -structopt = { version = "0.3.26" } +bs58 = { workspace = true, features = ["check"] } +hex = { workspace = true } +structopt = { workspace = true } diff --git a/tools/heartbeats-processor/Cargo.toml b/tools/heartbeats-processor/Cargo.toml index ef385c26b..91dbd351a 100644 --- a/tools/heartbeats-processor/Cargo.toml +++ b/tools/heartbeats-processor/Cargo.toml @@ -4,25 +4,23 @@ version = "0.17.0" edition = "2021" [dependencies] -anyhow = "1.0" -base64 = "0.22" -chrono = "0.4" -clap = { version = "4.4", features = ["derive"] } -dotenv = "0.15" -firestore = "0.44" -gcloud-sdk = { version = "0.26.0", default-features = false, features = [ - "google-firestore-v1", -] } +anyhow = { workspace = true } +base64 = { workspace = true } +chrono = { workspace = true } +clap = { workspace = true, features = ["derive"] } +dotenv = { workspace = true } +firestore = { workspace = true } +gcloud-sdk = { workspace = true } mina-tree = { path = "../../ledger" } -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } snark = { path = "../../snark" } -sqlx = { version = "0.8", features = [ +sqlx = { workspace = true, features = [ "runtime-tokio-native-tls", "sqlite", "chrono", ] } -tokio = { version = "1.28", features = ["full", "time"] } +tokio = { workspace = true, features = ["full", "time"] } mina-core = { path = "../../core" } mina-p2p-messages = { workspace = true } diff --git a/tools/ledger-tool/Cargo.toml b/tools/ledger-tool/Cargo.toml index 43f620b12..c271f4d7f 100644 --- a/tools/ledger-tool/Cargo.toml +++ b/tools/ledger-tool/Cargo.toml @@ -4,11 +4,11 @@ version = "0.17.0" edition = "2021" [dependencies] -anyhow = { version = "1.0" } -reqwest = { version = "0.11.24", features = ["blocking"] } -serde = { version = "1.0" } -serde_json = { version = "1.0", features = ["preserve_order"] } -structopt = { version = "0.3.26" } +anyhow = { workspace = true } +reqwest = { workspace = true, features = ["blocking"] } +serde = { workspace = true } +serde_json = { workspace = true, features = ["preserve_order"] } +structopt = { workspace = true } ledger = { path = "../../ledger", package = "mina-tree" } diff --git a/tools/salsa-simple/Cargo.toml b/tools/salsa-simple/Cargo.toml index 920672a39..e5b4323df 100644 --- a/tools/salsa-simple/Cargo.toml +++ b/tools/salsa-simple/Cargo.toml @@ -4,16 +4,16 @@ version = "0.17.0" edition = "2021" [dev-dependencies] -salsa20 = { version = "0.10.2" } -rand = { version = "0.8.5" } -serde_json = { version = "1.0" } +salsa20 = { workspace = true } +rand = { workspace = true } +serde_json = { workspace = true } [dependencies] -generic-array = { version = "0.14.7" } -hex = { version = "0.4.3", optional = true } -inout = { version = "0.1" } -serde = { version = "1.0", features = ["derive"], optional = true } -zeroize = { version = "1.8" } +generic-array = { workspace = true } +hex = { workspace = true, optional = true } +inout = { workspace = true } +serde = { workspace = true, features = ["derive"], optional = true } +zeroize = { workspace = true } [features] default = ["serde", "hex"] diff --git a/tools/transport/Cargo.toml b/tools/transport/Cargo.toml index d7a67f4a6..2ac464e4b 100644 --- a/tools/transport/Cargo.toml +++ b/tools/transport/Cargo.toml @@ -4,10 +4,10 @@ version = "0.17.0" edition = "2021" [dependencies] -blake2 = { version = "0.10.6" } -hex = { version = "0.4.3" } -log = { version = "0.4.17" } -pin-project-lite = { version = "0.2.10" } +blake2 = { workspace = true } +hex = { workspace = true } +log = { workspace = true } +pin-project-lite = { workspace = true } libp2p = { workspace = true, features = [ "tokio", diff --git a/tools/webrtc-sniffer/Cargo.toml b/tools/webrtc-sniffer/Cargo.toml index d655f19cc..fb1ca40e1 100644 --- a/tools/webrtc-sniffer/Cargo.toml +++ b/tools/webrtc-sniffer/Cargo.toml @@ -4,23 +4,23 @@ version = "0.17.0" edition = "2021" [dependencies] -clap = { version = "4.5", features = ["derive", "env"] } -ctrlc = { version = "3.4" } -env_logger = { version = "0.11.6" } -etherparse = { version = "0.17.0" } -hex = { version = "0.4.3" } -log = { version = "0.4.25" } -nom = { version = "8.0.0" } -pcap = { version = "2.3" } -sudo = { version = "0.6.0" } -thiserror = { version = "2.0" } +clap = { workspace = true, features = ["derive", "env"] } +ctrlc = { workspace = true } +env_logger = { workspace = true } +etherparse = { workspace = true } +hex = { workspace = true } +log = { workspace = true } +nom = { workspace = true } +pcap = { workspace = true } +sudo = { workspace = true } +thiserror = { workspace = true } -aes = { version = "0.8" } -aes-gcm = { version = "0.10" } -cbc = { version = "0.1", features = ["block-padding", "alloc"] } -hkdf = { version = "0.12" } -hmac = { version = "0.12" } -p256 = { version = "0.13", features = ["default", "ecdh", "ecdsa"] } -p384 = { version = "0.13" } -rand = { version = "0.8" } -sha2 = { version = "0.10.8" } +aes = { workspace = true } +aes-gcm = { workspace = true } +cbc = { workspace = true } +hkdf = { workspace = true } +hmac = { workspace = true } +p256 = { workspace = true } +p384 = { workspace = true } +rand = { workspace = true } +sha2 = { workspace = true } diff --git a/vrf/Cargo.toml b/vrf/Cargo.toml index d6244de66..cfb71cc7e 100644 --- a/vrf/Cargo.toml +++ b/vrf/Cargo.toml @@ -5,29 +5,29 @@ edition = "2021" license = "Apache-2.0" [dependencies] -anyhow = "1.0.70" -ark-ec.workspace = true +anyhow = { workspace = true } +ark-ec = { workspace = true } ark-ff = { workspace = true } -ark-serialize.workspace = true -hex = "0.4.3" +ark-serialize = { workspace = true } +hex = { workspace = true } ledger = { workspace = true } mina-curves = { workspace = true } mina-hasher = { workspace = true } mina-node-account = { workspace = true } mina-p2p-messages = { workspace = true } mina-signer = { workspace = true } -num = { version = "0.4", features = ["std"] } +num = { workspace = true } o1-utils = { workspace = true } poseidon = { workspace = true } redux = { workspace = true } serde = { workspace = true } -serde_json = { version = "1.0.82", features = [ +serde_json = { workspace = true, features = [ "unbounded_depth", "arbitrary_precision", ] } -thiserror = "1.0.37" +thiserror = { workspace = true } # num = "0.4" -bs58 = "0.4.0" -itertools = "0.12" -rand = "0.8" -sha2 = "0.10" +bs58 = { workspace = true } +itertools = { workspace = true } +rand = { workspace = true } +sha2 = { workspace = true }