diff --git a/Cargo.lock b/Cargo.lock index 12c52d407e3..a6511908783 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "Inflector" @@ -33,7 +33,7 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cipher", "cpufeatures", ] @@ -55,7 +55,7 @@ version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "getrandom 0.2.15", "once_cell", "version_check", @@ -114,7 +114,7 @@ checksum = "478bedf4d24e71ea48428d1bc278553bd7c6ae07c30ca063beb0b09fe58a9e74" dependencies = [ "alloy-rlp", "bytes", - "cfg-if 1.0.0", + "cfg-if", "const-hex", "derive_more 1.0.0", "foldhash", @@ -125,7 +125,7 @@ dependencies = [ "keccak-asm", "paste", "proptest", - "rand 0.8.5", + "rand", "ruint", "rustc-hash 2.1.1", "serde", @@ -256,9 +256,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.95" +version = "1.0.96" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" +checksum = "6b964d184e89d9b6b67dd2715bc8e74cf3107fb2b529990c90cf517326150bf4" [[package]] name = "arc-swap" @@ -377,7 +377,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1df2c09229cbc5a028b1d70e00fdb2acee28b1055dfb5ca73eea49c5a25c4e7c" dependencies = [ "num-traits", - "rand 0.8.5", + "rand", ] [[package]] @@ -387,7 +387,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" dependencies = [ "num-traits", - "rand 0.8.5", + "rand", ] [[package]] @@ -424,17 +424,6 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" -[[package]] -name = "async-channel" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" -dependencies = [ - "concurrent-queue", - "event-listener", - "futures-core", -] - [[package]] name = "async-trait" version = "0.1.86" @@ -490,9 +479,9 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "aws-config" -version = "1.5.16" +version = "1.5.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50236e4d60fe8458de90a71c0922c761e41755adf091b1b03de1cef537179915" +checksum = "490aa7465ee685b2ced076bb87ef654a47724a7844e2c7d3af4e749ce5b875dd" dependencies = [ "aws-credential-types", "aws-runtime", @@ -507,7 +496,7 @@ dependencies = [ "aws-smithy-types", "aws-types", "bytes", - "fastrand 2.3.0", + "fastrand", "hex", "http 0.2.12", "ring", @@ -545,21 +534,21 @@ dependencies = [ "aws-smithy-types", "aws-types", "bytes", - "fastrand 2.3.0", + "fastrand", "http 0.2.12", "http-body 0.4.6", "once_cell", "percent-encoding", "pin-project-lite", "tracing", - "uuid 1.13.1", + "uuid 1.15.1", ] [[package]] name = "aws-sdk-kms" -version = "1.60.0" +version = "1.61.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adc36035f7393a24719069c9a2f52e20972f7ee8472bd788e863968736acc449" +checksum = "72054067b7b84e963ee29c3b7fdfc61f76bcfc697e38b8dc1095a3ad2e7e764a" dependencies = [ "aws-credential-types", "aws-runtime", @@ -579,9 +568,9 @@ dependencies = [ [[package]] name = "aws-sdk-sso" -version = "1.59.0" +version = "1.60.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00a35fc7e74f5be45839eb753568535c074a592185dd0a2d406685018d581c43" +checksum = "60186fab60b24376d3e33b9ff0a43485f99efd470e3b75a9160c849741d63d56" dependencies = [ "aws-credential-types", "aws-runtime", @@ -601,9 +590,9 @@ dependencies = [ [[package]] name = "aws-sdk-ssooidc" -version = "1.60.0" +version = "1.61.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8fa655b4f313124ce272cbc38c5fef13793c832279cec750103e5e6b71a54b8" +checksum = "7033130ce1ee13e6018905b7b976c915963755aef299c1521897679d6cd4f8ef" dependencies = [ "aws-credential-types", "aws-runtime", @@ -623,9 +612,9 @@ dependencies = [ [[package]] name = "aws-sdk-sts" -version = "1.60.0" +version = "1.61.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1cfe5e16b90421ea031f4c6348b534ef442e76f6bf4a1b2b592c12cc2c6af9" +checksum = "c5c1cac7677179d622b4448b0d31bcb359185295dc6fca891920cfb17e2b5156" dependencies = [ "aws-credential-types", "aws-runtime", @@ -728,7 +717,7 @@ dependencies = [ "aws-smithy-runtime-api", "aws-smithy-types", "bytes", - "fastrand 2.3.0", + "fastrand", "h2 0.3.26", "http 0.2.12", "http-body 0.4.6", @@ -817,7 +806,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" dependencies = [ "addr2line", - "cfg-if 1.0.0", + "cfg-if", "libc", "miniz_oxide", "object", @@ -899,7 +888,16 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" dependencies = [ - "bit-vec", + "bit-vec 0.6.3", +] + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec 0.8.0", ] [[package]] @@ -908,6 +906,12 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + [[package]] name = "bitflags" version = "1.3.2" @@ -1123,21 +1127,15 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.2.13" +version = "1.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7777341816418c02e033934a09f20dc0ccaf65a5201ef8a450ae0105a573fda" +checksum = "c736e259eea577f443d5c86c304f9f4ae0295c43f3ba05c21f1d66b5f06001af" dependencies = [ "jobserver", "libc", "shlex", ] -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" - [[package]] name = "cfg-if" version = "1.0.0" @@ -1152,9 +1150,9 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chrono" -version = "0.4.39" +version = "0.4.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" +checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c" dependencies = [ "android-tzdata", "iana-time-zone", @@ -1162,7 +1160,7 @@ dependencies = [ "num-traits", "serde", "wasm-bindgen", - "windows-targets 0.52.6", + "windows-link", ] [[package]] @@ -1216,9 +1214,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.29" +version = "4.5.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8acebd8ad879283633b343856142139f2da2317c96b05b4dd6181c61e2480184" +checksum = "027bb0d98429ae334a8698531da7077bdf906419543a35a55c2cb1b66437d767" dependencies = [ "clap_builder", "clap_derive", @@ -1226,9 +1224,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.29" +version = "4.5.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ba32cbda51c7e1dfd49acc1457ba1a7dec5b64fe360e828acb13ca8dc9c2f9" +checksum = "5589e0cba072e0f3d23791efac0fd8627b49c829c196a492e88168e6a669d863" dependencies = [ "anstream", "anstyle", @@ -1239,9 +1237,9 @@ dependencies = [ [[package]] name = "clap_complete" -version = "4.5.44" +version = "4.5.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "375f9d8255adeeedd51053574fd8d4ba875ea5fa558e86617b07f09f1680c8b6" +checksum = "f5c5508ea23c5366f77e53f5a0070e5a84e51687ec3ef9e0464c86dc8d13ce98" dependencies = [ "clap", ] @@ -1291,22 +1289,22 @@ checksum = "67ba02a97a2bd10f4b59b25c7973101c79642302776489e030cd13cdab09ed15" [[package]] name = "codspeed" -version = "2.8.0" +version = "2.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25d2f5a6570db487f5258e0bded6352fa2034c2aeb46bb5cc3ff060a0fcfba2f" +checksum = "de4b67ff8985f3993f06167d71cf4aec178b0a1580f91a987170c59d60021103" dependencies = [ "colored", "libc", "serde", "serde_json", - "uuid 1.13.1", + "uuid 1.15.1", ] [[package]] name = "codspeed-criterion-compat" -version = "2.8.0" +version = "2.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f53a55558dedec742b14aae3c5fec389361b8b5ca28c1aadf09dd91faf710074" +checksum = "68403d768ed1def18a87e2306676781314448393ecf0d3057c4527cabf524a3d" dependencies = [ "codspeed", "colored", @@ -1340,7 +1338,7 @@ dependencies = [ "hmac 0.12.1", "once_cell", "pbkdf2 0.12.2", - "rand 0.8.5", + "rand", "sha2 0.10.8", "thiserror 1.0.69", ] @@ -1399,7 +1397,7 @@ dependencies = [ "http 0.2.12", "mime", "mime_guess", - "rand 0.8.5", + "rand", "thiserror 1.0.69", ] @@ -1441,15 +1439,6 @@ dependencies = [ "xdg", ] -[[package]] -name = "concurrent-queue" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" -dependencies = [ - "crossbeam-utils", -] - [[package]] name = "console" version = "0.15.10" @@ -1469,7 +1458,7 @@ version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b0485bab839b018a8f1723fc5391819fea5f8f0f32288ef8a735fd096b6160c" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "hex", "proptest", @@ -1583,7 +1572,7 @@ version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -1675,7 +1664,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array", - "rand_core 0.6.4", + "rand_core", "subtle", "zeroize", ] @@ -1736,7 +1725,7 @@ version = "4.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "curve25519-dalek-derive", "digest 0.10.7", @@ -1790,9 +1779,9 @@ dependencies = [ [[package]] name = "cynic-parser" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "718db83de607a233ef38f7cc2d18847c36a3529d7cd614b13c78c52c2fb61b7b" +checksum = "cbb0f21f2f8d3134c2e887a16564c165694231f48b6ae2769193299081ecf662" dependencies = [ "indexmap 2.7.1", "lalrpop-util", @@ -1863,7 +1852,7 @@ version = "5.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "hashbrown 0.14.5", "lock_api", "once_cell", @@ -1876,7 +1865,7 @@ version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "crossbeam-utils", "hashbrown 0.14.5", "lock_api", @@ -1921,19 +1910,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "deadpool" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "421fe0f90f2ab22016f32a9881be5134fdd71c65298917084b0c7477cbc3856e" -dependencies = [ - "async-trait", - "deadpool-runtime", - "num_cpus", - "retain_mut", - "tokio", -] - [[package]] name = "deadpool" version = "0.10.0" @@ -2135,7 +2111,7 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "dirs-sys-next", ] @@ -2198,9 +2174,9 @@ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" [[package]] name = "document-features" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb6969eaabd2421f8a2775cfd2471a2b634372b4a25d41e3bd647b79912850a0" +checksum = "95249b50c6c185bee49034bcb378a49dc2b5dff0be90ff6616d31d64febab05d" dependencies = [ "litrs", ] @@ -2307,9 +2283,9 @@ dependencies = [ [[package]] name = "either" -version = "1.13.0" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" +checksum = "b7914353092ddf589ad78f25c5c1c21b7f80b0ff8621e7c814c3485b5306da9d" [[package]] name = "elliptic-curve" @@ -2324,7 +2300,7 @@ dependencies = [ "generic-array", "group", "pkcs8", - "rand_core 0.6.4", + "rand_core", "sec1", "subtle", "zeroize", @@ -2354,7 +2330,7 @@ version = "0.8.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -2458,9 +2434,9 @@ dependencies = [ [[package]] name = "equivalent" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] name = "errno" @@ -2472,16 +2448,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "error-chain" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d2f06b9cac1506ece98fe3231e3cc9c4410ec3d5b1f24ae1c8946f0742cdefc" -dependencies = [ - "backtrace", - "version_check", -] - [[package]] name = "error-code" version = "3.3.1" @@ -2518,7 +2484,7 @@ dependencies = [ "hex", "hmac 0.12.1", "pbkdf2 0.11.0", - "rand 0.8.5", + "rand", "scrypt", "serde", "serde_json", @@ -2561,12 +2527,6 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b90ca2580b73ab6a1f724b76ca11ab632df820fd6040c336200d2c1df7b3c82c" -[[package]] -name = "event-listener" -version = "2.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" - [[package]] name = "eventsource-client" version = "0.13.0" @@ -2579,7 +2539,7 @@ dependencies = [ "hyper-timeout", "log", "pin-project", - "rand 0.8.5", + "rand", "tokio", ] @@ -2616,7 +2576,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b95f7c0680e4142284cf8b22c14a476e87d61b004a3a0861872b32ef7ead40a2" dependencies = [ - "bit-set", + "bit-set 0.5.3", "regex", ] @@ -2626,15 +2586,6 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2a2b11eda1d40935b26cf18f6833c526845ae8c41e58d09af6adeb6f0269183" -[[package]] -name = "fastrand" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" -dependencies = [ - "instant", -] - [[package]] name = "fastrand" version = "2.3.0" @@ -2669,7 +2620,7 @@ version = "4.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7e5768da2206272c81ef0b5e951a41862938a6070da63bcea197899942d3b947" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "rustix", "windows-sys 0.52.0", ] @@ -2680,7 +2631,7 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ - "rand_core 0.6.4", + "rand_core", "subtle", ] @@ -2717,7 +2668,7 @@ version = "0.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "libredox 0.1.3", "windows-sys 0.59.0", @@ -2730,7 +2681,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" dependencies = [ "byteorder", - "rand 0.8.5", + "rand", "rustc-hex", "static_assertions", ] @@ -2743,9 +2694,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.35" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" +checksum = "11faaf5a5236997af9848be0bef4db95824b1d534ebc64d0f0c6cf3e67bd38dc" dependencies = [ "crc32fast", "miniz_oxide", @@ -2781,7 +2732,7 @@ dependencies = [ "fs_extra", "fuel-asm", "hex", - "rexpect 0.5.0", + "rexpect", "serde", "serde_json", "sway-core", @@ -2833,10 +2784,10 @@ dependencies = [ "k256", "portpicker", "pretty_assertions", - "rand 0.8.5", + "rand", "regex", "reqwest", - "rexpect 0.5.0", + "rexpect", "rpassword", "serde", "serde_json", @@ -2870,7 +2821,7 @@ dependencies = [ "futures", "hex", "libp2p-identity", - "rand 0.8.5", + "rand", "rayon", "regex", "serde", @@ -2878,7 +2829,7 @@ dependencies = [ "serde_yaml", "sha3", "tempfile", - "termion 4.0.3", + "termion 4.0.4", "tokio", "tracing", ] @@ -2902,7 +2853,7 @@ dependencies = [ "fuel-vm", "portpicker", "rayon", - "rexpect 0.4.0", + "rexpect", "rustyline", "serde", "serde_json", @@ -3008,9 +2959,9 @@ dependencies = [ "serde_json", "sha1", "tempfile", - "termion 4.0.3", + "termion 4.0.4", "tokio", - "wiremock 0.5.22", + "wiremock", ] [[package]] @@ -3072,9 +3023,9 @@ dependencies = [ "toml 0.8.20", "tracing", "url", - "uuid 1.13.1", + "uuid 1.15.1", "walkdir", - "wiremock 0.6.2", + "wiremock", ] [[package]] @@ -3087,7 +3038,7 @@ dependencies = [ "fuel-tx", "fuel-vm", "fuels-core", - "rand 0.8.5", + "rand", "rayon", "sway-core", "sway-features", @@ -3177,7 +3128,7 @@ dependencies = [ "futures", "hex", "home", - "rand 0.8.5", + "rand", "rpassword", "serde_json", "termion 2.0.3", @@ -3267,7 +3218,7 @@ dependencies = [ "fuel-core-types", "itertools 0.12.1", "postcard", - "rand 0.8.5", + "rand", "serde", "serde_json", "serde_with", @@ -3384,7 +3335,7 @@ dependencies = [ "derive_more 0.99.19", "fuel-vm", "k256", - "rand 0.8.5", + "rand", "secrecy", "serde", "tai64", @@ -3405,7 +3356,7 @@ dependencies = [ "k256", "lazy_static", "p256", - "rand 0.8.5", + "rand", "secp256k1", "serde", "sha2 0.10.8", @@ -3452,7 +3403,7 @@ dependencies = [ "num-bigint", "pest", "pest_derive", - "rand 0.8.5", + "rand", "sha3", "snafu", ] @@ -3508,7 +3459,7 @@ dependencies = [ "hashbrown 0.14.5", "itertools 0.10.5", "postcard", - "rand 0.8.5", + "rand", "serde", "strum 0.24.1", "strum_macros 0.24.3", @@ -3522,7 +3473,7 @@ checksum = "db2cbad4962ba02b683f33686eb79c3002dde3791f3c71a4465d46601caba8b6" dependencies = [ "fuel-derive", "hex", - "rand 0.8.5", + "rand", "serde", ] @@ -3551,7 +3502,7 @@ dependencies = [ "paste", "percent-encoding", "primitive-types", - "rand 0.8.5", + "rand", "serde", "serde_with", "sha3", @@ -3595,7 +3546,7 @@ dependencies = [ "fuel-types", "fuels-core", "itertools 0.12.1", - "rand 0.8.5", + "rand", "semver 1.0.25", "tai64", "thiserror 1.0.69", @@ -3675,7 +3626,7 @@ dependencies = [ "fuels-accounts", "fuels-core", "itertools 0.12.1", - "rand 0.8.5", + "rand", "serde_json", "tokio", ] @@ -3698,7 +3649,7 @@ dependencies = [ "fuels-core", "futures", "portpicker", - "rand 0.8.5", + "rand", "tempfile", "tokio", "which", @@ -3758,21 +3709,6 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" -[[package]] -name = "futures-lite" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" -dependencies = [ - "fastrand 1.9.0", - "futures-core", - "futures-io", - "memchr", - "parking", - "pin-project-lite", - "waker-fn", -] - [[package]] name = "futures-macro" version = "0.3.31" @@ -3796,12 +3732,6 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" -[[package]] -name = "futures-timer" -version = "3.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24" - [[package]] name = "futures-util" version = "0.3.31" @@ -3841,24 +3771,13 @@ 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" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "js-sys", "libc", "wasi 0.11.0+wasi-snapshot-preview1", @@ -3871,7 +3790,7 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "wasi 0.13.3+wasi-0.2.2", "windows-targets 0.52.6", @@ -3995,7 +3914,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", - "rand_core 0.6.4", + "rand_core", "subtle", ] @@ -4020,9 +3939,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.7" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" +checksum = "5017294ff4bb30944501348f6f8e42e6ad28f42c8bbef7a74029aff064a4e3c2" dependencies = [ "atomic-waker", "bytes", @@ -4043,7 +3962,7 @@ version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6dd08c532ae367adf81c312a4580bc67f1d0fe8bc9c460520283f4c0ff277888" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "crunchy", ] @@ -4267,27 +4186,6 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "http-types" -version = "2.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e9b187a72d63adbfba487f48095306ac823049cb504ee195541e91c7775f5ad" -dependencies = [ - "anyhow", - "async-channel", - "base64 0.13.1", - "futures-lite", - "http 0.2.12", - "infer", - "pin-project-lite", - "rand 0.7.3", - "serde", - "serde_json", - "serde_qs", - "serde_urlencoded", - "url", -] - [[package]] name = "httparse" version = "1.10.0" @@ -4339,7 +4237,7 @@ dependencies = [ "bytes", "futures-channel", "futures-util", - "h2 0.4.7", + "h2 0.4.8", "http 1.2.0", "http-body 1.0.1", "httparse", @@ -4621,7 +4519,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0acd33ff0285af998aaf9b57342af478078f53492322fafc47450e09397e0e9" dependencies = [ "bitmaps", - "rand_core 0.6.4", + "rand_core", "rand_xoshiro", "sized-chunks", "typenum", @@ -4744,12 +4642,6 @@ version = "2.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" -[[package]] -name = "infer" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64e9829a50b42bb782c1df523f78d332fe371b10c661e78b7a3c34b0198e9fac" - [[package]] name = "inotify" version = "0.9.6" @@ -4772,9 +4664,9 @@ dependencies = [ [[package]] name = "inout" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" dependencies = [ "generic-array", ] @@ -4794,15 +4686,6 @@ dependencies = [ "similar", ] -[[package]] -name = "instant" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" -dependencies = [ - "cfg-if 1.0.0", -] - [[package]] name = "ipfs-api-backend-hyper" version = "0.6.0" @@ -4828,7 +4711,7 @@ checksum = "9b74065805db266ba2c6edbd670b23c4714824a955628472b2e46cc9f3a869cb" dependencies = [ "async-trait", "bytes", - "cfg-if 1.0.0", + "cfg-if", "common-multipart-rfc7578", "dirs 4.0.0", "futures", @@ -4936,7 +4819,7 @@ version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f6e3919bbaa2945715f0bb6d3934a173d1e9a59ac23767fbaaef277265a7411b" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "ecdsa", "elliptic-curve", "once_cell", @@ -5003,9 +4886,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.169" +version = "0.2.170" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" +checksum = "875b3680cb2f8f71bdcf9a30f38d48282f5d3c95cbf9b3fa57269bb5d5c06828" [[package]] name = "libdbus-sys" @@ -5074,7 +4957,7 @@ checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ "bitflags 2.8.0", "libc", - "redox_syscall 0.5.8", + "redox_syscall 0.5.9", ] [[package]] @@ -5090,7 +4973,7 @@ dependencies = [ "libsecp256k1-core", "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", - "rand 0.8.5", + "rand", "serde", "sha2 0.9.9", "typenum", @@ -5177,9 +5060,9 @@ checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" [[package]] name = "litemap" -version = "0.7.4" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" +checksum = "23fb14cb19457329c82206317a5663005a4d404783dc74f4252769b0d5f42856" [[package]] name = "litrs" @@ -5199,9 +5082,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.25" +version = "0.4.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" +checksum = "30bde2b3dc3671ae49d8e2e9f044c7c005836e7a023ee57cffa25ab82764bb9e" [[package]] name = "logos" @@ -5283,9 +5166,9 @@ dependencies = [ [[package]] name = "mdbook" -version = "0.4.44" +version = "0.4.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9da1e54401fe5d45a664c57e112e70f18e8c5a73e268c179305b932ee864574" +checksum = "b07d36d96ffe1b5b16ddf2bc80b3b26bb7a498b2a6591061250bf0af8e8095ad" dependencies = [ "anyhow", "chrono", @@ -5325,15 +5208,6 @@ version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" -[[package]] -name = "memoffset" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" -dependencies = [ - "autocfg", -] - [[package]] name = "memoffset" version = "0.7.1" @@ -5361,18 +5235,18 @@ dependencies = [ [[package]] name = "minifier" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cf47565b1430f5fe6c81d3afcb4b835271348d7eb35294a4d592e38dd09ea22" +checksum = "9bfdc64e2f805f3d12965f10522000bae36e88d2cfea44112331f467d4f4bf68" dependencies = [ "clap", ] [[package]] name = "miniz_oxide" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3b1c9bd4fe1f0f8b387f6eb9eb3b4a1aa26185e5750efb9140301703f62cd1b" +checksum = "8e3e04debbb59698c15bacbb6d93584a8c0ca9cc3213cb423d31f760d8843ce5" dependencies = [ "adler2", ] @@ -5467,9 +5341,9 @@ dependencies = [ [[package]] name = "native-tls" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dab59f8e050d5df8e4dd87d9206fb6f65a483e20ac9fda365ade4fab353196c" +checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e" dependencies = [ "libc", "log", @@ -5493,42 +5367,26 @@ dependencies = [ [[package]] name = "nix" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c722bee1037d430d0f8e687bbdbf222f27cc6e4e68d5caf630857bb2b6dbdce" -dependencies = [ - "bitflags 1.3.2", - "cc", - "cfg-if 0.1.10", - "libc", - "void", -] - -[[package]] -name = "nix" -version = "0.25.1" +version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f346ff70e7dbfd675fe90590b92d59ef2de15a8779ae305ebcbfd3f0caf59be4" +checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" dependencies = [ - "autocfg", "bitflags 1.3.2", - "cfg-if 1.0.0", + "cfg-if", "libc", - "memoffset 0.6.5", + "memoffset", "pin-utils", ] [[package]] name = "nix" -version = "0.26.4" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" +checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" dependencies = [ - "bitflags 1.3.2", - "cfg-if 1.0.0", + "bitflags 2.8.0", + "cfg-if", "libc", - "memoffset 0.7.1", - "pin-utils", ] [[package]] @@ -5538,7 +5396,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" dependencies = [ "bitflags 2.8.0", - "cfg-if 1.0.0", + "cfg-if", "cfg_aliases", "libc", ] @@ -5814,12 +5672,12 @@ dependencies = [ [[package]] name = "openssl" -version = "0.10.70" +version = "0.10.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61cfb4e166a8bb8c9b55c500bc2308550148ece889be90f609377e58140f42c6" +checksum = "5e14130c6a98cd258fdcb0fb6d744152343ff729cbfcb28c656a9d12b999fbcd" dependencies = [ "bitflags 2.8.0", - "cfg-if 1.0.0", + "cfg-if", "foreign-types", "libc", "once_cell", @@ -5855,9 +5713,9 @@ dependencies = [ [[package]] name = "openssl-sys" -version = "0.9.105" +version = "0.9.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b22d5b84be05a8d6947c7cb71f7c849aa0f112acd4bf51c2a7c1c988ac0a9dc" +checksum = "8bb61ea9811cc39e3c2069f40b8b8e2e70d8569b361f879786cc7ed48b777cdd" dependencies = [ "cc", "libc", @@ -5973,12 +5831,6 @@ dependencies = [ "syn 2.0.98", ] -[[package]] -name = "parking" -version = "2.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" - [[package]] name = "parking_lot" version = "0.12.3" @@ -5995,9 +5847,9 @@ version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", - "redox_syscall 0.5.8", + "redox_syscall 0.5.9", "smallvec", "windows-targets 0.52.6", ] @@ -6134,7 +5986,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" dependencies = [ "phf_shared", - "rand 0.8.5", + "rand", ] [[package]] @@ -6254,7 +6106,7 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be97d76faf1bfab666e1375477b23fde79eccf0276e9b63b92a39d676a889ba9" dependencies = [ - "rand 0.8.5", + "rand", ] [[package]] @@ -6453,17 +6305,17 @@ dependencies = [ [[package]] name = "proptest" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4c2511913b88df1637da85cc8d96ec8e43a3f8bb8ccb71ee1ac240d6f3df58d" +checksum = "14cae93065090804185d3b75f0bf93b8eeda30c7a9b4a33d3bdb3988d6229e50" dependencies = [ - "bit-set", - "bit-vec", + "bit-set 0.8.0", + "bit-vec 0.8.0", "bitflags 2.8.0", "lazy_static", "num-traits", - "rand 0.8.5", - "rand_chacha 0.3.1", + "rand", + "rand_chacha", "rand_xorshift", "regex-syntax 0.8.5", "rusty-fork", @@ -6584,7 +6436,7 @@ checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" dependencies = [ "bytes", "getrandom 0.2.15", - "rand 0.8.5", + "rand", "ring", "rustc-hash 2.1.1", "rustls 0.23.23", @@ -6598,9 +6450,9 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.9" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c40286217b4ba3a71d644d752e6a0b71f13f1b6a2c5311acfcbe0c2418ed904" +checksum = "e46f3055866785f6b92bc6164b76be02ca8f2eb4b002c0354b28cf4c119e5944" dependencies = [ "cfg_aliases", "libc", @@ -6635,19 +6487,6 @@ dependencies = [ "nibble_vec", ] -[[package]] -name = "rand" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", -] - [[package]] name = "rand" version = "0.8.5" @@ -6655,18 +6494,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_chacha" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" -dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", + "rand_chacha", + "rand_core", ] [[package]] @@ -6676,16 +6505,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", + "rand_core", ] [[package]] @@ -6697,22 +6517,13 @@ dependencies = [ "getrandom 0.2.15", ] -[[package]] -name = "rand_hc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" -dependencies = [ - "rand_core 0.5.1", -] - [[package]] name = "rand_xorshift" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d25bf25ec5ae4a3f1b92f929810509a2f53d7dca2f50b794ff57e3face536c8f" dependencies = [ - "rand_core 0.6.4", + "rand_core", ] [[package]] @@ -6721,7 +6532,7 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" dependencies = [ - "rand_core 0.6.4", + "rand_core", ] [[package]] @@ -6766,9 +6577,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.8" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" +checksum = "82b568323e98e49e2a0899dcee453dd679fae22d69adf9b11dd508d1549b7e2f" dependencies = [ "bitflags 2.8.0", ] @@ -6882,7 +6693,7 @@ dependencies = [ "encoding_rs", "futures-core", "futures-util", - "h2 0.4.7", + "h2 0.4.8", "http 1.2.0", "http-body 1.0.1", "http-body-util", @@ -6920,12 +6731,6 @@ dependencies = [ "windows-registry", ] -[[package]] -name = "retain_mut" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4389f1d5789befaf6029ebd9f7dac4af7f7e3d61b69d4f30e2ac02b57e7712b0" - [[package]] name = "revm" version = "14.0.3" @@ -6933,7 +6738,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "641702b12847f9ed418d552f4fcabe536d867a2c980e96b6e7e25d7b992f929f" dependencies = [ "auto_impl", - "cfg-if 1.0.0", + "cfg-if", "dyn-clone", "revm-interpreter", "revm-precompile", @@ -6960,7 +6765,7 @@ dependencies = [ "aurora-engine-modexp", "blst", "c-kzg", - "cfg-if 1.0.0", + "cfg-if", "k256", "once_cell", "revm-primitives", @@ -6983,7 +6788,7 @@ dependencies = [ "bitflags 2.8.0", "bitvec", "c-kzg", - "cfg-if 1.0.0", + "cfg-if", "dyn-clone", "enumn", "hex", @@ -6992,24 +6797,12 @@ dependencies = [ [[package]] name = "rexpect" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "862c0149d91461fab225ddd06a5af919913f5c57405ed4f27d2466d6cc877186" -dependencies = [ - "error-chain", - "nix 0.14.1", - "regex", - "tempfile", -] - -[[package]] -name = "rexpect" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01ff60778f96fb5a48adbe421d21bf6578ed58c0872d712e7e08593c195adff8" +checksum = "c020234fb542618dc3e3d43724e9d93f87e1db74040a76a8c4e830220fb9b20d" dependencies = [ "comma", - "nix 0.25.1", + "nix 0.27.1", "regex", "tempfile", "thiserror 1.0.69", @@ -7027,12 +6820,12 @@ dependencies = [ [[package]] name = "ring" -version = "0.17.9" +version = "0.17.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e75ec5e92c4d8aede845126adc388046234541629e76029599ed35a003c7ed24" +checksum = "da5349ae27d3887ca812fb375b45a4fbb36d8d12d2df394968cd86e35683fe73" dependencies = [ "cc", - "cfg-if 1.0.0", + "cfg-if", "getrandom 0.2.15", "libc", "untrusted", @@ -7063,7 +6856,7 @@ dependencies = [ "rkyv_derive", "seahash", "tinyvec", - "uuid 1.13.1", + "uuid 1.15.1", ] [[package]] @@ -7143,9 +6936,9 @@ dependencies = [ [[package]] name = "ruint" -version = "1.12.4" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5ef8fb1dd8de3870cb8400d51b4c2023854bbafd5431a3ac7e7317243e22d2f" +checksum = "825df406ec217a8116bd7b06897c6cc8f65ffefc15d030ae2c9540acc9ed50b6" dependencies = [ "alloy-rlp", "ark-ff 0.3.0", @@ -7159,7 +6952,7 @@ dependencies = [ "parity-scale-codec", "primitive-types", "proptest", - "rand 0.8.5", + "rand", "rlp", "ruint-macro", "serde", @@ -7183,7 +6976,7 @@ dependencies = [ "borsh", "bytes", "num-traits", - "rand 0.8.5", + "rand", "rkyv", "serde", "serde_json", @@ -7355,7 +7148,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2ee1e066dc922e513bda599c6ccb5f3bb2b0ea5870a579448f2622993f0a9a2f" dependencies = [ "bitflags 2.8.0", - "cfg-if 1.0.0", + "cfg-if", "clipboard-win", "fd-lock", "home", @@ -7507,7 +7300,7 @@ version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9465315bc9d4566e1724f0fffcbcc446268cb522e60f9a27bcded6b19c108113" dependencies = [ - "rand 0.8.5", + "rand", "secp256k1-sys", ] @@ -7581,18 +7374,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.217" +version = "1.0.218" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" +checksum = "e8dfc9d19bdbf6d17e22319da49161d5d0108e4188e8b680aef6299eed22df60" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.217" +version = "1.0.218" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" +checksum = "f09503e191f4e797cb8aac08e9a4a4695c5edf6a2e70e376d961ddd5c969f82b" dependencies = [ "proc-macro2", "quote", @@ -7610,9 +7403,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.138" +version = "1.0.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949" +checksum = "44f86c3acccc9c65b153fe1b85a3be07fe5515274ec9f0653b4a0875731c72a6" dependencies = [ "indexmap 2.7.1", "itoa", @@ -7621,17 +7414,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_qs" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7715380eec75f029a4ef7de39a9200e0a63823176b759d055b613f5a87df6a6" -dependencies = [ - "percent-encoding", - "serde", - "thiserror 1.0.69", -] - [[package]] name = "serde_repr" version = "0.1.19" @@ -7738,7 +7520,7 @@ version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.10.7", ] @@ -7750,7 +7532,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" dependencies = [ "block-buffer 0.9.0", - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.9.0", "opaque-debug", @@ -7762,7 +7544,7 @@ version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.10.7", ] @@ -7784,7 +7566,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c28efc5e327c837aa837c59eae585fc250715ef939ac32881bcc11677cd02d46" dependencies = [ "cc", - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -7834,7 +7616,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest 0.10.7", - "rand_core 0.6.4", + "rand_core", ] [[package]] @@ -7895,9 +7677,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.13.2" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd" [[package]] name = "smawk" @@ -8059,7 +7841,7 @@ dependencies = [ "byteorder", "crunchy", "lazy_static", - "rand 0.8.5", + "rand", "rustc-hex", ] @@ -8190,7 +7972,7 @@ dependencies = [ "criterion", "crossbeam-channel", "dashmap 6.1.0", - "dirs 4.0.0", + "dirs 5.0.1", "fd-lock", "forc-pkg", "forc-tracing 0.66.7", @@ -8204,7 +7986,7 @@ dependencies = [ "pretty_assertions", "proc-macro2", "quote", - "rand 0.8.5", + "rand", "rayon", "rayon-cond", "regex", @@ -8225,7 +8007,7 @@ dependencies = [ "tikv-jemallocator", "tokio", "toml_edit", - "tower 0.4.13", + "tower 0.5.2", "tower-lsp", "tracing", "urlencoding", @@ -8238,7 +8020,7 @@ dependencies = [ "assert-json-diff", "futures", "lsp-types", - "rand 0.8.5", + "rand", "serde", "serde_json", "tokio", @@ -8397,7 +8179,7 @@ version = "0.29.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd727fc423c2060f6c92d9534cef765c65a6ed3f428a03d7def74a8c4348e666" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "core-foundation-sys", "libc", "ntapi", @@ -8465,9 +8247,9 @@ dependencies = [ [[package]] name = "tar" -version = "0.4.43" +version = "0.4.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c65998313f8e17d0d553d28f91a0df93e4dbbbf770279c7bc21ca0f09ea1a1f6" +checksum = "1d863878d212c87a19c1a610eb53bb01fe12951c0501cf5a0d65f724914a667a" dependencies = [ "filetime", "libc", @@ -8476,12 +8258,12 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.16.0" +version = "3.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38c246215d7d24f48ae091a2902398798e05d978b24315d6efbc00ede9a8bb91" +checksum = "22e5a0acb1f3f55f65cc4a866c361b2fb2a0ff6366785ae6fbb5f85df07ba230" dependencies = [ - "cfg-if 1.0.0", - "fastrand 2.3.0", + "cfg-if", + "fastrand", "getrandom 0.3.1", "once_cell", "rustix", @@ -8543,9 +8325,9 @@ dependencies = [ [[package]] name = "termion" -version = "4.0.3" +version = "4.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7eaa98560e51a2cf4f0bb884d8b2098a9ea11ecf3b7078e9c68242c74cc923a7" +checksum = "6f359c854fbecc1ea65bc3683f1dcb2dce78b174a1ca7fda37acd1fff81df6ff" dependencies = [ "libc", "libredox 0.1.3", @@ -8577,7 +8359,7 @@ dependencies = [ "libtest-mimic", "normalize-path", "prettydiff", - "rand 0.8.5", + "rand", "regex", "revm", "serde_json", @@ -8665,7 +8447,7 @@ version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "once_cell", ] @@ -8739,7 +8521,7 @@ dependencies = [ "hmac 0.12.1", "once_cell", "pbkdf2 0.11.0", - "rand 0.8.5", + "rand", "rustc-hash 1.1.0", "sha2 0.10.8", "thiserror 1.0.69", @@ -9116,7 +8898,7 @@ version = "1.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "static_assertions", ] @@ -9139,9 +8921,9 @@ dependencies = [ [[package]] name = "typenum" -version = "1.17.0" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" +checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" [[package]] name = "ucd-trie" @@ -9181,9 +8963,9 @@ checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" [[package]] name = "unicode-ident" -version = "1.0.16" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034" +checksum = "00e2473a93778eb0bad35909dff6a10d28e63f792f16ed15e404fca9d5eeedbe" [[package]] name = "unicode-linebreak" @@ -9308,9 +9090,9 @@ dependencies = [ [[package]] name = "uuid" -version = "1.13.1" +version = "1.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ced87ca4be083373936a67f8de945faa23b6b42384bd5b64434850802c6dccd0" +checksum = "e0f540e3240398cce6128b64ba83fdbdd86129c16a3aa1a3a252efd66eb3d587" dependencies = [ "getrandom 0.3.1", "serde", @@ -9340,12 +9122,6 @@ version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" -[[package]] -name = "void" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" - [[package]] name = "vsimd" version = "0.8.0" @@ -9405,12 +9181,6 @@ dependencies = [ "libc", ] -[[package]] -name = "waker-fn" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317211a0dc0ceedd78fb2ca9a44aed3d7b9b26f81870d485c07122b4350673b7" - [[package]] name = "walkdir" version = "2.5.0" @@ -9430,12 +9200,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" @@ -9463,7 +9227,7 @@ version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "once_cell", "rustversion", "wasm-bindgen-macro", @@ -9489,7 +9253,7 @@ version = "0.4.50" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "js-sys", "once_cell", "wasm-bindgen", @@ -9581,7 +9345,7 @@ version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "372d5b87f58ec45c384ba03563b03544dc5fadc3983e434b286913f5b4a9bb6d" dependencies = [ - "redox_syscall 0.5.8", + "redox_syscall 0.5.9", "wasite", "web-sys", ] @@ -9626,6 +9390,12 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows-link" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dccfd733ce2b1753b03b6d3c65edf020262ea35e20ccdf3e288043e6dd620e3" + [[package]] name = "windows-registry" version = "0.2.0" @@ -9806,9 +9576,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59690dea168f2198d1a3b0cac23b8063efcd11012f10ae4698f284808c8ef603" +checksum = "0e7f4ea97f6f78012141bcdb6a216b2609f0979ada50b20ca5b52dde2eac2bb1" dependencies = [ "memchr", ] @@ -9819,28 +9589,6 @@ version = "0.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904" -[[package]] -name = "wiremock" -version = "0.5.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13a3a53eaf34f390dd30d7b1b078287dd05df2aa2e21a589ccb80f5c7253c2e9" -dependencies = [ - "assert-json-diff", - "async-trait", - "base64 0.21.7", - "deadpool 0.9.5", - "futures", - "futures-timer", - "http-types", - "hyper 0.14.32", - "log", - "once_cell", - "regex", - "serde", - "serde_json", - "tokio", -] - [[package]] name = "wiremock" version = "0.6.2" @@ -9850,7 +9598,7 @@ dependencies = [ "assert-json-diff", "async-trait", "base64 0.22.1", - "deadpool 0.10.0", + "deadpool", "futures", "http 1.2.0", "http-body-util", @@ -9980,18 +9728,18 @@ dependencies = [ [[package]] name = "zerofrom" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" dependencies = [ "zerofrom-derive", ] [[package]] name = "zerofrom-derive" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 409ca0cf66e..27f76c4488a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -116,6 +116,7 @@ annotate-snippets = "0.10" ansiterm = "0.12" anyhow = "1.0" assert-json-diff = "2.0" +assert_matches = "1.5.0" async-trait = "0.1" aws-config = "1.5" aws-sdk-kms = "1.44" @@ -127,20 +128,27 @@ cid = "0.11" clap = "4.5" clap_complete = "4.5" clap_complete_fig = "4.5" +codspeed-criterion-compat = "2.6.0" colored = "2.0" +completest-pty = "0.5.0" comrak = "0.28" +criterion = "0.5" crossbeam-channel = "0.5" dap = "0.4.1-alpha" dashmap = "6.1" devault = "0.2" dialoguer = "0.11" +dir_indexer = "0.0.2" dirs = "5.0" downcast-rs = "1.2" +duct = "0.13.7" duplicate = "2.0" either = "1.9" +escargot = "0.5.7" ethabi = { package = "fuel-ethabi", version = "18.0" } etk-asm = { package = "fuel-etk-asm", version = "0.3.1-dev" } etk-ops = { package = "fuel-etk-ops", version = "0.3.1-dev" } +expect-test = "1.4.1" extension-trait = "1.0" fd-lock = "4.0" filecheck = "0.5" @@ -186,6 +194,7 @@ pest = "2.7" pest_derive = "2.7" petgraph = "0.6" phf = "0.11" +portpicker = "0.1.1" pretty_assertions = "1.4" prettydiff = "0.7" proc-macro2 = "1.0" @@ -195,6 +204,7 @@ rayon = "1.7" rayon-cond = "0.3" regex = "1.10" reqwest = "0.12" +rexpect = "0.6" revm = "14.0" ropey = "1.5" rpassword = "7.2" @@ -210,11 +220,14 @@ serial_test = "3.0" sha1 = "0.10" sha2 = "0.10" sha3 = "0.10" +similar = "2.0" slotmap = "1.0" smallvec = "1.7" strsim = "0.11" strum = "0.26" syn = "2.0" +sysinfo = "0.29" +tai64 = "4.0" taplo = "0.13" tar = "0.4" tempfile = "3" @@ -230,6 +243,7 @@ tower = { version = "0.5", default-features = false } tower-lsp = "0.20" tracing = "0.1" tracing-subscriber = "0.3" +tracing-test = "0.2" uint = "0.9" unicode-bidi = "0.3" unicode-xid = "0.2" @@ -240,3 +254,4 @@ vec1 = "1.8" vte = "0.13" walkdir = "2.3" whoami = "1.5" +wiremock = "0.6" diff --git a/forc-pkg/Cargo.toml b/forc-pkg/Cargo.toml index fa29d63a68b..bc12570ad8d 100644 --- a/forc-pkg/Cargo.toml +++ b/forc-pkg/Cargo.toml @@ -42,9 +42,9 @@ vec1.workspace = true walkdir.workspace = true [dev-dependencies] -regex = "^1.10.2" +regex.workspace = true tempfile.workspace = true [target.'cfg(not(target_os = "macos"))'.dependencies] -sysinfo = "0.29" +sysinfo.workspace = true diff --git a/forc-plugins/forc-client/Cargo.toml b/forc-plugins/forc-client/Cargo.toml index dde742c6da8..6f2f6aa1f46 100644 --- a/forc-plugins/forc-client/Cargo.toml +++ b/forc-plugins/forc-client/Cargo.toml @@ -59,12 +59,12 @@ tracing.workspace = true url.workspace = true [dev-dependencies] -portpicker = "0.1.1" -pretty_assertions = "1.4.1" -rexpect = "0.5" +portpicker.workspace = true +pretty_assertions.workspace = true +rexpect.workspace = true [build-dependencies] -regex = "1.5.4" +regex.workspace = true [[bin]] name = "forc-deploy" diff --git a/forc-plugins/forc-crypto/Cargo.toml b/forc-plugins/forc-crypto/Cargo.toml index e0e631e937d..11d9fb501a2 100644 --- a/forc-plugins/forc-crypto/Cargo.toml +++ b/forc-plugins/forc-crypto/Cargo.toml @@ -33,7 +33,7 @@ tokio = { workspace = true, features = ["macros", "rt-multi-thread", "process"] tracing.workspace = true [dev-dependencies] -criterion = "0.5" +criterion.workspace = true tempfile.workspace = true [[bench]] diff --git a/forc-plugins/forc-debug/Cargo.toml b/forc-plugins/forc-debug/Cargo.toml index ea8e1681b9a..145a8246c9a 100644 --- a/forc-plugins/forc-debug/Cargo.toml +++ b/forc-plugins/forc-debug/Cargo.toml @@ -40,6 +40,6 @@ walkdir.workspace = true [dev-dependencies] dap = { version = "0.4.1-alpha1", features = ["client"] } -escargot = "0.5.7" -portpicker = "0.1.1" -rexpect = "0.4" +escargot.workspace = true +portpicker.workspace = true +rexpect.workspace = true diff --git a/forc-plugins/forc-doc/Cargo.toml b/forc-plugins/forc-doc/Cargo.toml index ebfd2bc7197..bfcc9aa0ffd 100644 --- a/forc-plugins/forc-doc/Cargo.toml +++ b/forc-plugins/forc-doc/Cargo.toml @@ -29,5 +29,5 @@ sway-types.workspace = true swayfmt.workspace = true [dev-dependencies] -dir_indexer = "0.0.2" -expect-test = "1.4.1" +dir_indexer.workspace = true +expect-test.workspace = true diff --git a/forc-plugins/forc-node/Cargo.toml b/forc-plugins/forc-node/Cargo.toml index 5334a558978..f271872e75a 100644 --- a/forc-plugins/forc-node/Cargo.toml +++ b/forc-plugins/forc-node/Cargo.toml @@ -24,12 +24,12 @@ termion.workspace = true tokio = { workspace = true, features = ["macros", "signal", "rt-multi-thread"] } [dev-dependencies] -portpicker = "0.1.1" +portpicker.workspace = true reqwest = { workspace = true, features = ["json"] } serde_json.workspace = true tempfile.workspace = true tokio = { workspace = true, features = ["full"] } -wiremock = "0.5" +wiremock.workspace = true [lib] path = "src/lib.rs" diff --git a/forc-plugins/forc-publish/Cargo.toml b/forc-plugins/forc-publish/Cargo.toml index 16b79cca111..e2b25c1e263 100644 --- a/forc-plugins/forc-publish/Cargo.toml +++ b/forc-plugins/forc-publish/Cargo.toml @@ -28,4 +28,4 @@ uuid = { workspace = true, features = ["v4", "serde"] } walkdir.workspace = true [dev-dependencies] -wiremock = "0.6.2" +wiremock.workspace = true diff --git a/forc-tracing/Cargo.toml b/forc-tracing/Cargo.toml index 871e04df5a0..600e3b4542e 100644 --- a/forc-tracing/Cargo.toml +++ b/forc-tracing/Cargo.toml @@ -14,4 +14,4 @@ tracing.workspace = true tracing-subscriber = { workspace = true, features = ["ansi", "env-filter", "json"] } [dev-dependencies] -tracing-test = "0.2" +tracing-test.workspace = true diff --git a/forc/Cargo.toml b/forc/Cargo.toml index b3257f1ad1f..41c9c389639 100644 --- a/forc/Cargo.toml +++ b/forc/Cargo.toml @@ -54,5 +54,5 @@ util = [] profile = [] [dev-dependencies] -completest-pty = "0.5.0" -rexpect = "0.5" +completest-pty.workspace = true +rexpect.workspace = true diff --git a/sway-core/Cargo.toml b/sway-core/Cargo.toml index 1c4ede7eb2f..c6f7f0dfe40 100644 --- a/sway-core/Cargo.toml +++ b/sway-core/Cargo.toml @@ -49,7 +49,7 @@ uint.workspace = true vec1.workspace = true [target.'cfg(not(target_os = "macos"))'.dependencies] -sysinfo = "0.29.0" +sysinfo.workspace = true [lints.clippy] iter_over_hash_type = "deny" diff --git a/sway-lib-std/src/bytes.sw b/sway-lib-std/src/bytes.sw index 820998c2940..3a70cecd1ea 100644 --- a/sway-lib-std/src/bytes.sw +++ b/sway-lib-std/src/bytes.sw @@ -7,6 +7,7 @@ use ::intrinsics::size_of_val; use ::option::Option::{self, *}; use ::convert::{From, Into, *}; use ::clone::Clone; +use ::iterator::*; struct RawBytes { ptr: raw_ptr, @@ -871,6 +872,86 @@ impl Bytes { self.len = new_len; } + + /// Returns an [Iterator] to iterate over this `Bytes`. + /// + /// # Returns + /// + /// * [BytesIter] - The struct which can be iterated over. + /// + /// # Examples + /// + /// ```sway + /// fn foo() { + /// let mut bytes = Bytes::new(); + /// bytes.push(5_u8); + /// bytes.push(10_u8); + /// bytes.push(15_u8); + /// + /// // Get the iterator + /// let iter = bytes.iter(); + /// + /// assert_eq(5_u8, iter.next().unwrap()); + /// assert_eq(10_u8, iter.next().unwrap()); + /// assert_eq(15_u8, iter.next().unwrap()); + /// + /// for elem in bytes.iter() { + /// log(elem); + /// } + /// } + /// + /// # Undefined Behavior + /// + /// Modifying vector during iteration is a logical error and + /// results in undefined behavior. E.g.: + /// + /// ```sway + /// fn foo() { + /// let mut bytes = Bytes::new(); + /// bytes.push(5_u8); + /// bytes.push(10_u8); + /// bytes.push(15_u8); + /// + /// for elem in bytes.iter() { + /// bytes.push(20_u8); // Modification causes undefined behavior. + /// } + /// } + /// ``` + pub fn iter(self) -> BytesIter { + // WARNING: Be aware of caveats of this implementation + // if you take it as an example for implementing + // `Iterator` for other types. + // + // Due to the Sway's copy semantics, the `values` will + // actually contain **a copy of the original bytes + // `self`**. This is contrary to the iterator semantics + // which should iterate over the collection itself. + // + // Strictly speaking, we should take a reference to + // `self` here, but references as for now an experimental + // feature. + // + // However, this issue of copying gets compensated by + // another issue, which is the broken copy semantics + // for heap types like `Bytes`. Essentially, the original + // `self` and it's copy `values` will both point to + // the same elements on the heap, which gives us the + // desired behavior for the iterator. + // + // This fact makes the implementation of `next` very + // misleading in the part where the bytes length is + // checked (see comment in the `next` implementation + // below). + // + // Once we fix and formalize the copying of heap types + // this implementation will be changed, but for + // the time being, it is the most pragmatic one we can + // have now. + BytesIter { + values: self, + index: 0, + } + } } #[cfg(experimental_partial_eq = false)] @@ -1091,3 +1172,33 @@ impl AbiDecode for Bytes { raw_slice::abi_decode(buffer).into() } } + +pub struct BytesIter { + values: Bytes, + index: u64, +} + +impl Iterator for BytesIter { + type Item = u8; + fn next(ref mut self) -> Option { + // BEWARE: `self.values` keeps **the copy** of the `Bytes` + // we iterate over. The below check checks against + // the length of that copy, taken when the iterator + // was created, and not the original vector. + // + // If the original vector gets modified during the iteration + // (e.g., elements are removed), this modification will not + // be reflected in `self.values.len()`. + // + // But since modifying the vector during iteration is + // considered undefined behavior, this implementation, + // that always checks against the length at the time + // the iterator got created is perfectly valid. + if self.index >= self.values.len() { + return None + } + + self.index += 1; + self.values.get(self.index - 1) + } +} diff --git a/sway-lsp/Cargo.toml b/sway-lsp/Cargo.toml index 20e1f3f646c..8801a9d48cb 100644 --- a/sway-lsp/Cargo.toml +++ b/sway-lsp/Cargo.toml @@ -54,20 +54,20 @@ tracing.workspace = true urlencoding.workspace = true [dev-dependencies] -assert-json-diff = "2.0" -codspeed-criterion-compat = "2.6.0" -criterion = "0.5" -dirs = "4.0" -futures = { version = "0.3", default-features = false, features = [ +assert-json-diff.workspace = true +codspeed-criterion-compat.workspace = true +criterion.workspace = true +dirs.workspace = true +futures = { workspace = true, default-features = false, features = [ "std", "async-await", ] } -pretty_assertions = "1.4.0" -rand = "0.8" -regex = "^1.10.2" +pretty_assertions.workspace = true +rand.workspace = true +regex.workspace = true sway-lsp-test-utils = { path = "tests/utils" } -tikv-jemallocator = "0.6" -tower = { version = "0.4.12", default-features = false, features = ["util"] } +tikv-jemallocator.workspace = true +tower = { workspace = true, default-features = false, features = ["util"] } [[bench]] name = "bench_main" diff --git a/sway-parse/Cargo.toml b/sway-parse/Cargo.toml index eb7ebbc150c..417646e2dc4 100644 --- a/sway-parse/Cargo.toml +++ b/sway-parse/Cargo.toml @@ -21,8 +21,8 @@ unicode-bidi.workspace = true unicode-xid.workspace = true [dev-dependencies] -assert_matches = "1.5.0" -insta = { version = "1.28.0", features = ["ron"] } +assert_matches.workspace = true +insta = { workspace = true, features = ["ron"] } [lints.clippy] iter_over_hash_type = "deny" diff --git a/swayfmt/Cargo.toml b/swayfmt/Cargo.toml index 71eb6d60824..950072aa682 100644 --- a/swayfmt/Cargo.toml +++ b/swayfmt/Cargo.toml @@ -24,7 +24,7 @@ thiserror.workspace = true toml = { workspace = true, features = ["parse"] } [dev-dependencies] -paste = "1.0" -prettydiff = "0.7" -similar = "2.0" +paste.workspace = true +prettydiff.workspace = true +similar.workspace = true test-macros = { path = "test_macros" } diff --git a/swayfmt/test_macros/Cargo.toml b/swayfmt/test_macros/Cargo.toml index f08138e89dc..0aa3c4d6878 100644 --- a/swayfmt/test_macros/Cargo.toml +++ b/swayfmt/test_macros/Cargo.toml @@ -14,8 +14,8 @@ repository.workspace = true [dependencies] [dev-dependencies] -paste = "1.0" -prettydiff = "0.7" +paste.workspace = true +prettydiff.workspace = true [package.metadata.cargo-udeps.ignore] development = ["paste", "prettydiff"] diff --git a/test/Cargo.toml b/test/Cargo.toml index 809116ad79f..b4988119b00 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -10,7 +10,7 @@ anyhow.workspace = true bytes.workspace = true clap = { workspace = true, features = ["derive", "env"] } colored.workspace = true -duct = "0.13.7" +duct.workspace = true filecheck.workspace = true forc = { workspace = true, features = ["test"] } forc-client.workspace = true diff --git a/test/src/in_language_tests/test_programs/bytes_inline_tests/src/iter.sw b/test/src/in_language_tests/test_programs/bytes_inline_tests/src/iter.sw new file mode 100644 index 00000000000..0a00b797f58 --- /dev/null +++ b/test/src/in_language_tests/test_programs/bytes_inline_tests/src/iter.sw @@ -0,0 +1,55 @@ +library; + +use std::bytes::Bytes; + +#[test] +fn bytes_iter() { + let mut bytes: Bytes = Bytes::new(); + + let number0 = 0; + let number1 = 1; + let number2 = 2; + let number3 = 3; + let number4 = 4; + + bytes.push(number0); + bytes.push(number1); + bytes.push(number2); + bytes.push(number3); + bytes.push(number4); + + let mut iter = bytes.iter(); + + assert(iter.next() == Some(number0)); + assert(iter.next() == Some(number1)); + assert(iter.next() == Some(number2)); + assert(iter.next() == Some(number3)); + assert(iter.next() == Some(number4)); + assert(iter.next() == None); + assert(iter.next() == None); +} + +#[test] +fn bytes_for_loop() { + let mut bytes: Bytes = Bytes::new(); + + let number0 = 0; + let number1 = 1; + let number2 = 2; + let number3 = 3; + let number4 = 4; + + bytes.push(number0); + bytes.push(number1); + bytes.push(number2); + bytes.push(number3); + bytes.push(number4); + + let arr = [number0, number1, number2, number3, number4]; + + let mut i = 0; + for elem in bytes.iter() { + assert(elem == arr[i]); + i += 1; + } +} diff --git a/test/src/in_language_tests/test_programs/bytes_inline_tests/src/main.sw b/test/src/in_language_tests/test_programs/bytes_inline_tests/src/main.sw index 9a34d728750..c8ee7d7d3d3 100644 --- a/test/src/in_language_tests/test_programs/bytes_inline_tests/src/main.sw +++ b/test/src/in_language_tests/test_programs/bytes_inline_tests/src/main.sw @@ -2,6 +2,7 @@ library; pub mod utils; pub mod splice; +pub mod iter; use utils::setup; use std::bytes::Bytes;