From e47a42e80054ff49e0ffc9d071412201837834f7 Mon Sep 17 00:00:00 2001 From: Edgar Date: Wed, 18 Dec 2024 15:28:10 -0300 Subject: [PATCH] Cairo 2.9.2 (#948) * update to 2.9.0 * ci * rust 1.83.0 * fix * 2.9.1 * update * update alexandria * scarb * version * fix * rc1 * fix * Update Makefile Co-authored-by: MrAzteca * update replay * fix alexandria * looks like runtime is needed always due to build.rs * fix patch * typo --------- Co-authored-by: MrAzteca --- .github/workflows/bench-hyperfine.yml | 4 +- .github/workflows/ci.yml | 16 +- .github/workflows/daily.yml | 2 +- .github/workflows/publish.yml | 2 +- .github/workflows/release.yml | 8 +- .github/workflows/rustdoc.yml | 2 +- .github/workflows/starknet-blocks.yml | 9 +- Cargo.lock | 775 ++++++++++++++++---------- Cargo.toml | 58 +- Makefile | 6 +- benches/benches.rs | 8 +- benches/libfuncs.rs | 2 +- runtime/Cargo.toml | 4 +- tests/alexandria/Scarb.lock | 13 +- tests/alexandria/Scarb.toml | 10 +- tests/common.rs | 4 +- tests/tests/alexandria.rs | 2 +- tests/tests/arrays.rs | 4 +- tests/tests/boolean.rs | 14 +- tests/tests/dict.rs | 2 +- tests/tests/ec.rs | 11 +- tests/tests/felt252.rs | 8 +- tests/tests/libfuncs.rs | 6 +- tests/tests/programs.rs | 22 +- tests/tests/uint.rs | 50 +- 25 files changed, 626 insertions(+), 416 deletions(-) diff --git a/.github/workflows/bench-hyperfine.yml b/.github/workflows/bench-hyperfine.yml index ff113f305..727e58226 100644 --- a/.github/workflows/bench-hyperfine.yml +++ b/.github/workflows/bench-hyperfine.yml @@ -43,7 +43,7 @@ jobs: sudo rm -rf /usr/share/dotnet/ sudo rm -rf /usr/local/lib/android df -h - - uses: dtolnay/rust-toolchain@1.82.0 + - uses: dtolnay/rust-toolchain@1.83.0 with: components: clippy - uses: Swatinem/rust-cache@v2 @@ -131,7 +131,7 @@ jobs: df -h - name: Install Rust if: ${{ steps.cache-binary.outputs.cache-hit != 'true' || steps.cache-library.outputs.cache-hit != 'true' }} - uses: dtolnay/rust-toolchain@1.82.0 + uses: dtolnay/rust-toolchain@1.83.0 - name: add llvm deb repository if: ${{ steps.cache-binary.outputs.cache-hit != 'true' || steps.cache-library.outputs.cache-hit != 'true' }} uses: myci-actions/add-deb-repo@11 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4e94c78d..0bc962e69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: TABLEGEN_190_PREFIX: /usr/lib/llvm-19/ steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@1.82.0 + - uses: dtolnay/rust-toolchain@1.83.0 with: components: clippy, rustfmt - uses: Swatinem/rust-cache@v2 @@ -41,7 +41,7 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@1.82.0 + - uses: dtolnay/rust-toolchain@1.83.0 with: components: rustfmt - run: cargo fmt --all -- --check @@ -134,7 +134,7 @@ jobs: sudo rm -rf /usr/local/lib/android df -h - name: Setup rust env - uses: dtolnay/rust-toolchain@1.82.0 + uses: dtolnay/rust-toolchain@1.83.0 - name: Retreive cached dependecies uses: Swatinem/rust-cache@v2 - name: add llvm deb repository @@ -166,7 +166,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Rustup toolchain install - uses: dtolnay/rust-toolchain@1.82.0 + uses: dtolnay/rust-toolchain@1.83.0 with: components: clippy - name: Rust `$PATH` workaround. @@ -175,7 +175,7 @@ jobs: - name: Install scarb uses: software-mansion/setup-scarb@v1 with: - scarb-version: "2.8.4" + scarb-version: "2.9.2" - name: Install deps run: make deps - name: Run tests @@ -225,7 +225,7 @@ jobs: sudo rm -rf /usr/local/lib/android df -h - name: Setup rust env - uses: dtolnay/rust-toolchain@1.82.0 + uses: dtolnay/rust-toolchain@1.83.0 - name: Retreive cached dependecies uses: Swatinem/rust-cache@v2 - name: add llvm deb repository @@ -243,7 +243,7 @@ jobs: - name: Install scarb uses: software-mansion/setup-scarb@v1 with: - scarb-version: "2.8.4" + scarb-version: "2.9.2" - name: Install deps run: make deps - name: Build runtime and alexandria @@ -278,7 +278,7 @@ jobs: needs: [coverage] steps: - name: Setup rust env - uses: dtolnay/rust-toolchain@1.80.0 + uses: dtolnay/rust-toolchain@1.83.0 - name: Retreive cached dependencies uses: Swatinem/rust-cache@v2 - name: Install testing tools diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 154ef712d..2168b57c8 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -86,7 +86,7 @@ jobs: # Install dependencies - uses: ./cairo_native/.github/actions/install-linux-deps - name: Setup rust env - uses: dtolnay/rust-toolchain@1.82.0 + uses: dtolnay/rust-toolchain@1.83.0 - name: Retreive cached dependecies uses: Swatinem/rust-cache@v2 - name: Build Cairo Native Runtime Library diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 62962afd0..3b374c054 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,7 @@ jobs: sudo rm -rf /usr/share/dotnet/ sudo rm -rf /usr/local/lib/android - name: Setup rust env - uses: dtolnay/rust-toolchain@1.82.0 + uses: dtolnay/rust-toolchain@1.83.0 - name: Retreive cached dependecies uses: Swatinem/rust-cache@v2 - name: add llvm deb repository diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9e026417..2d44b06d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: sudo rm -rf /usr/share/dotnet/ sudo rm -rf /usr/local/lib/android - name: Setup rust env - uses: dtolnay/rust-toolchain@1.82.0 + uses: dtolnay/rust-toolchain@1.83.0 - name: Retreive cached dependecies uses: Swatinem/rust-cache@v2 - name: add llvm deb repository @@ -36,6 +36,8 @@ jobs: keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key - name: Install LLVM run: sudo apt-get install llvm-19 llvm-19-dev llvm-19-runtime clang-19 clang-tools-19 lld-19 libpolly-19-dev libmlir-19-dev mlir-19-tools + - name: Install deps + run: make deps - name: build release run: make build - name: Compress into a tar file @@ -58,11 +60,13 @@ jobs: steps: - uses: actions/checkout@v4 - name: Rustup toolchain install - uses: dtolnay/rust-toolchain@1.82.0 + uses: dtolnay/rust-toolchain@1.83.0 with: components: clippy - name: Rust `$PATH` workaround. run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH + - name: Install deps + run: make deps - name: Build release run: make build - name: Compress into a tar file diff --git a/.github/workflows/rustdoc.yml b/.github/workflows/rustdoc.yml index 93e31f0d4..359953d64 100644 --- a/.github/workflows/rustdoc.yml +++ b/.github/workflows/rustdoc.yml @@ -18,7 +18,7 @@ jobs: TABLEGEN_190_PREFIX: /usr/lib/llvm-19/ steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@1.82.0 + - uses: dtolnay/rust-toolchain@1.83.0 - uses: Swatinem/rust-cache@v2 - name: add llvm deb repository uses: myci-actions/add-deb-repo@11 diff --git a/.github/workflows/starknet-blocks.yml b/.github/workflows/starknet-blocks.yml index 72d2d9fe4..4ecc2e4d6 100644 --- a/.github/workflows/starknet-blocks.yml +++ b/.github/workflows/starknet-blocks.yml @@ -22,12 +22,12 @@ jobs: block: [742001, 769597, 779328, 801008, 803072] steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@1.82.0 + - uses: dtolnay/rust-toolchain@1.83.0 with: components: clippy - uses: Swatinem/rust-cache@v2 with: - key: "ref-02b46e8b108f85ac50c22a8c41c9d8b0a93294e8" + key: "ref-955512a96ab317c61d0b12ae230f33176b6005e4" - name: Check and free hdd space left if: ${{ matrix.runner == 'native' }} @@ -66,7 +66,6 @@ jobs: if: ${{ matrix.runner == 'native' }} run: cargo b --release - name: Build runtime - if: ${{ matrix.runner == 'native' }} run: | make runtime cargo update @@ -76,7 +75,7 @@ jobs: uses: actions/checkout@v4 with: repository: lambdaclass/starknet-replay - ref: 02b46e8b108f85ac50c22a8c41c9d8b0a93294e8 + ref: 955512a96ab317c61d0b12ae230f33176b6005e4 path: replay - name: Install Starknet Replay deps @@ -86,7 +85,7 @@ jobs: if: ${{ matrix.runner == 'native' }} run: | cd replay - sed -r -i 's/cairo-native.*/cairo-native = { path = ".." }/' Cargo.toml + echo -e '[patch.crates-io]\ncairo-native = { path = ".." }' >> Cargo.toml - name: Run Blocks Native if: ${{ matrix.runner == 'native' }} diff --git a/Cargo.lock b/Cargo.lock index c91071f45..4f21ec418 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 = "adler2" @@ -42,9 +42,9 @@ dependencies = [ [[package]] name = "allocator-api2" -version = "0.2.20" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45862d1c77f2228b9e10bc609d5bc203d86ebc9b87ad8d5d5167a6c9abf739d9" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "anes" @@ -103,9 +103,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.93" +version = "1.0.94" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775" +checksum = "c1fd03a028ef38ba2276dce7e33fcd6369c158a1bca17946c4b1b701891c1ff7" [[package]] name = "aquamarine" @@ -118,7 +118,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -127,10 +127,10 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" dependencies = [ - "ark-ff", - "ark-poly", - "ark-serialize", - "ark-std", + "ark-ff 0.4.2", + "ark-poly 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", "derivative", "hashbrown 0.13.2", "itertools 0.10.5", @@ -138,16 +138,37 @@ dependencies = [ "zeroize", ] +[[package]] +name = "ark-ec" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43d68f2d516162846c1238e755a7c4d131b892b70cc70c471a8e3ca3ed818fce" +dependencies = [ + "ahash", + "ark-ff 0.5.0", + "ark-poly 0.5.0", + "ark-serialize 0.5.0", + "ark-std 0.5.0", + "educe 0.6.0", + "fnv", + "hashbrown 0.15.2", + "itertools 0.13.0", + "num-bigint", + "num-integer", + "num-traits", + "zeroize", +] + [[package]] name = "ark-ff" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" dependencies = [ - "ark-ff-asm", - "ark-ff-macros", - "ark-serialize", - "ark-std", + "ark-ff-asm 0.4.2", + "ark-ff-macros 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", "derivative", "digest", "itertools 0.10.5", @@ -158,6 +179,26 @@ dependencies = [ "zeroize", ] +[[package]] +name = "ark-ff" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a177aba0ed1e0fbb62aa9f6d0502e9b46dad8c2eab04c14258a1212d2557ea70" +dependencies = [ + "ark-ff-asm 0.5.0", + "ark-ff-macros 0.5.0", + "ark-serialize 0.5.0", + "ark-std 0.5.0", + "arrayvec", + "digest", + "educe 0.6.0", + "itertools 0.13.0", + "num-bigint", + "num-traits", + "paste", + "zeroize", +] + [[package]] name = "ark-ff-asm" version = "0.4.2" @@ -168,6 +209,16 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "ark-ff-asm" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62945a2f7e6de02a31fe400aa489f0e0f5b2502e69f95f853adb82a96c7a6b60" +dependencies = [ + "quote", + "syn 2.0.90", +] + [[package]] name = "ark-ff-macros" version = "0.4.2" @@ -181,28 +232,67 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "ark-ff-macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09be120733ee33f7693ceaa202ca41accd5653b779563608f1234f78ae07c4b3" +dependencies = [ + "num-bigint", + "num-traits", + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "ark-poly" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" dependencies = [ - "ark-ff", - "ark-serialize", - "ark-std", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", "derivative", "hashbrown 0.13.2", ] +[[package]] +name = "ark-poly" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "579305839da207f02b89cd1679e50e67b4331e2f9294a57693e5051b7703fe27" +dependencies = [ + "ahash", + "ark-ff 0.5.0", + "ark-serialize 0.5.0", + "ark-std 0.5.0", + "educe 0.6.0", + "fnv", + "hashbrown 0.15.2", +] + [[package]] name = "ark-secp256k1" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c02e954eaeb4ddb29613fee20840c2bbc85ca4396d53e33837e11905363c5f2" dependencies = [ - "ark-ec", - "ark-ff", - "ark-std", + "ark-ec 0.4.2", + "ark-ff 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-secp256k1" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8bd211c48debd3037b48873a7aa22c3aba034e83388aa4124795c9f220b88c7" +dependencies = [ + "ark-ec 0.5.0", + "ark-ff 0.5.0", + "ark-std 0.5.0", ] [[package]] @@ -211,9 +301,20 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3975a01b0a6e3eae0f72ec7ca8598a6620fc72fa5981f6f5cca33b7cd788f633" dependencies = [ - "ark-ec", - "ark-ff", - "ark-std", + "ark-ec 0.4.2", + "ark-ff 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-secp256r1" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cf8be5820de567729bfa73a410ddd07cec8ad102d9a4bf61fd6b2e60db264e8" +dependencies = [ + "ark-ec 0.5.0", + "ark-ff 0.5.0", + "ark-std 0.5.0", ] [[package]] @@ -222,8 +323,21 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" dependencies = [ - "ark-serialize-derive", - "ark-std", + "ark-serialize-derive 0.4.2", + "ark-std 0.4.0", + "digest", + "num-bigint", +] + +[[package]] +name = "ark-serialize" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f4d068aaf107ebcd7dfb52bc748f8030e0fc930ac8e360146ca54c1203088f7" +dependencies = [ + "ark-serialize-derive 0.5.0", + "ark-std 0.5.0", + "arrayvec", "digest", "num-bigint", ] @@ -239,6 +353,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "ark-serialize-derive" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "213888f660fddcca0d257e88e54ac05bca01885f258ccdf695bafd77031bb69d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "ark-std" version = "0.4.0" @@ -249,6 +374,16 @@ dependencies = [ "rand", ] +[[package]] +name = "ark-std" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "246a225cc6131e9ee4f24619af0f19d67761fff15d7ccc22e42b80846e69449a" +dependencies = [ + "num-traits", + "rand", +] + [[package]] name = "arrayvec" version = "0.7.6" @@ -308,17 +443,17 @@ dependencies = [ "proc-macro2", "quote", "regex", - "rustc-hash", + "rustc-hash 1.1.0", "shlex", - "syn 2.0.89", + "syn 2.0.90", "which", ] [[package]] name = "bindgen" -version = "0.70.1" +version = "0.71.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f" +checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3" dependencies = [ "bitflags", "cexpr", @@ -329,9 +464,9 @@ dependencies = [ "proc-macro2", "quote", "regex", - "rustc-hash", + "rustc-hash 2.1.0", "shlex", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -376,11 +511,36 @@ dependencies = [ "generic-array", ] +[[package]] +name = "bon" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f265cdb2e8501f1c952749e78babe8f1937be92c98120e5f78fc72d634682bad" +dependencies = [ + "bon-macros", + "rustversion", +] + +[[package]] +name = "bon-macros" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38aa5c627cd7706490e5b003d685f8b9d69bc343b1a00b9fdd01e75fdf6827cf" +dependencies = [ + "darling", + "ident_case", + "prettyplease", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.90", +] + [[package]] name = "bstr" -version = "1.11.0" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a68f1f47cdf0ec8ee4b941b2eee2a80cb796db73118c0dd09ac63fbe405be22" +checksum = "786a307d683a5bf92e6fd5fd69a7eb613751668d1d8d67d802846dfe367c62c8" dependencies = [ "memchr", "serde", @@ -427,9 +587,9 @@ dependencies = [ [[package]] name = "cairo-lang-casm" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1e0dcdb6358bb639dd729546611bd99bada94c86e3f262c3637855abea9a972" +checksum = "3929a38c1d586e35e19dbdf7798b146fba3627b308417a6d373fea8939535b6b" dependencies = [ "cairo-lang-utils", "indoc", @@ -441,9 +601,9 @@ dependencies = [ [[package]] name = "cairo-lang-compiler" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8657f5a5611f341a85e80ba0b21848fc34bfdf391bfd93df0baf4516c3e4159" +checksum = "0bed098f0c3666b3ad3a93aef6293f91fc1119bef660ce994105f6d1bc2802cf" dependencies = [ "anyhow", "cairo-lang-defs", @@ -462,23 +622,23 @@ dependencies = [ "rust-analyzer-salsa", "semver", "smol_str", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "cairo-lang-debug" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0635aa554d297acefe6a35b495aba2795d0af5b7f97c4ab63829c7d62291ef41" +checksum = "d7763505dcfe15f36899074c27185bf7e3494875f63fd06350c6e3ed8d1f91d5" dependencies = [ "cairo-lang-utils", ] [[package]] name = "cairo-lang-defs" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b356e1c09898e8b8cfdd9731579d89365a13d8b4f7e717962e0cc7d125b83c" +checksum = "b4d29dc5a3cafe94ea4397d41b00cd54a9dffbe9bc3a3092a9ea617ea737bc6e" dependencies = [ "cairo-lang-debug", "cairo-lang-diagnostics", @@ -493,9 +653,9 @@ dependencies = [ [[package]] name = "cairo-lang-diagnostics" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dfe7c6ff96182da29012b707a3554e34a50f19cc96013ee45b0eb36dd396ec8" +checksum = "761d20ca9c3a3eb7025b2488aa6e0e5dc23c5d551dd95e83a989b5e87687f523" dependencies = [ "cairo-lang-debug", "cairo-lang-filesystem", @@ -505,9 +665,9 @@ dependencies = [ [[package]] name = "cairo-lang-eq-solver" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "723d244465309d5409e297b5486d62cbec06f2c47b05044414bb640e3f14caab" +checksum = "d778ec864e92c82293370a512195715b12775b05981e14065d85eb5dd3dd96b6" dependencies = [ "cairo-lang-utils", "good_lp", @@ -515,9 +675,9 @@ dependencies = [ [[package]] name = "cairo-lang-filesystem" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "237030772ae5368f19a9247e1f63f753f8ad8de963477166e402f4825c0a141d" +checksum = "d9dc486c554e2df3be8e84c47e30fe55b59d2349b680fbe992bfba801ef93ff5" dependencies = [ "cairo-lang-debug", "cairo-lang-utils", @@ -531,9 +691,9 @@ dependencies = [ [[package]] name = "cairo-lang-formatter" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b71f0eb3a36a6cb5f7f07843926783c4c17e44c9516b53171727a108782f3eb" +checksum = "675d281a3c9aa365055ce6e201d5dd91534dfccfd2929a41b7397f665c80293c" dependencies = [ "anyhow", "cairo-lang-diagnostics", @@ -546,14 +706,14 @@ dependencies = [ "itertools 0.12.1", "rust-analyzer-salsa", "serde", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "cairo-lang-lowering" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d095d78e2f1de499429c95655d6135a3d24c384b36d8de9f84e0aa4e07ee152" +checksum = "d880470c94f94fac08c2150bc0ce4af930b6760956a56966e47612de376d57ec" dependencies = [ "cairo-lang-debug", "cairo-lang-defs", @@ -576,9 +736,9 @@ dependencies = [ [[package]] name = "cairo-lang-parser" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb828af7f948a3ef7fa65de14e3f639daedefb046dfefcad6e3116d2cb0f89a0" +checksum = "37e2b488f659432c8b866bf540e54ab3696a24ac0f366faac33b860c5313e78c" dependencies = [ "cairo-lang-diagnostics", "cairo-lang-filesystem", @@ -596,9 +756,9 @@ dependencies = [ [[package]] name = "cairo-lang-plugins" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "135a600043bf7030eacc6ebf2a609c2364d6ffeb04e1f3c809a2738f6b02c829" +checksum = "13cf34fd39a1efb997455fa38dbdb6bef489a125a2d17d77ebfea1ee580559f3" dependencies = [ "cairo-lang-defs", "cairo-lang-diagnostics", @@ -613,47 +773,69 @@ dependencies = [ "smol_str", ] +[[package]] +name = "cairo-lang-primitive-token" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "123ac0ecadf31bacae77436d72b88fa9caef2b8e92c89ce63a125ae911a12fae" + [[package]] name = "cairo-lang-proc-macros" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac857ec4b564712f3e16e3314e23cc0787ab1c05cdfee83f1c8f9989a6eee40f" +checksum = "b3c4a161868276ce022c44ac500afbfa0d7d8371106feb40dfca34ea7be97503" dependencies = [ "cairo-lang-debug", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] name = "cairo-lang-project" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23cc37b7f8889cdea631aeea3bcc70d5c86ac8fb1d98aabc83f16283d60f1643" +checksum = "fde3cc9777fff4daacbfd839a6fcefa29abd660068de47f72ac6d5883fa93ccd" dependencies = [ "cairo-lang-filesystem", "cairo-lang-utils", "serde", - "smol_str", - "thiserror", + "thiserror 1.0.69", "toml", ] +[[package]] +name = "cairo-lang-runnable-utils" +version = "2.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872d846834c8fdc886a7dc591c1f6ddd969d25d2c88dd65452931c63dfca7acc" +dependencies = [ + "cairo-lang-casm", + "cairo-lang-sierra", + "cairo-lang-sierra-ap-change", + "cairo-lang-sierra-gas", + "cairo-lang-sierra-to-casm", + "cairo-lang-sierra-type-size", + "cairo-lang-utils", + "cairo-vm 1.0.1", + "itertools 0.12.1", + "thiserror 1.0.69", +] + [[package]] name = "cairo-lang-runner" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7474375528ffa7f47e343983d32051898e4e7b05ac0bdc48ee84b1325d8b562a" +checksum = "f9121164a61b0a8fcadefc8b21240e372bf04e6648ea31d09f9e85701e60877a" dependencies = [ - "ark-ff", - "ark-secp256k1", - "ark-secp256r1", + "ark-ff 0.4.2", + "ark-secp256k1 0.4.0", + "ark-secp256r1 0.4.0", "cairo-lang-casm", "cairo-lang-lowering", + "cairo-lang-runnable-utils", "cairo-lang-sierra", - "cairo-lang-sierra-ap-change", "cairo-lang-sierra-generator", "cairo-lang-sierra-to-casm", - "cairo-lang-sierra-type-size", "cairo-lang-starknet", "cairo-lang-utils", "cairo-vm 1.0.1", @@ -666,14 +848,14 @@ dependencies = [ "sha2", "smol_str", "starknet-types-core", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "cairo-lang-semantic" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c560cf4b4a89325d3a9594f490fffee38cf30e0990e808bb927619de9d0c973a" +checksum = "8af1f92ba601fd61a994c44d0c80d711fbb3d64b2b5a1e72905fc6f581b1fadd" dependencies = [ "cairo-lang-debug", "cairo-lang-defs", @@ -691,15 +873,16 @@ dependencies = [ "num-bigint", "num-traits", "rust-analyzer-salsa", + "sha3", "smol_str", "toml", ] [[package]] name = "cairo-lang-sierra" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8118f55ca7d567bfc60960b445d388564d04bf48335c983b1595cb35f67a01c5" +checksum = "075c6457642ada82b32cf657d871a8545ae7a9d61c78dd5588a794c8c905abdc" dependencies = [ "anyhow", "cairo-lang-utils", @@ -719,14 +902,14 @@ dependencies = [ "sha3", "smol_str", "starknet-types-core", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "cairo-lang-sierra-ap-change" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2716ef8d4ce0fb700f83ed3281f3656436570e60249d41c65c79dc1ca27be002" +checksum = "b69172fe8354b1dd564bba318ccb5233aa78f70d57145b8c92a0b1cf009fa0fc" dependencies = [ "cairo-lang-eq-solver", "cairo-lang-sierra", @@ -735,14 +918,14 @@ dependencies = [ "itertools 0.12.1", "num-bigint", "num-traits", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "cairo-lang-sierra-gas" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24a44da87a35845470c4f4c648225232a15e0875fe809045b6088464491f838b" +checksum = "42b571b73d9b02103f780aeee05dbf9a71d68d8a16341a04aa1dd581d0db3ad6" dependencies = [ "cairo-lang-eq-solver", "cairo-lang-sierra", @@ -751,14 +934,14 @@ dependencies = [ "itertools 0.12.1", "num-bigint", "num-traits", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "cairo-lang-sierra-generator" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15bc5cf9f3965a7030a114dfe3d31d183287fbfbfbf904deaaa2468cadb936aa" +checksum = "1d3857cd98a0cb35b32cc962e70c04e6ddfcd8bf61106ac37b6cf453ec76b878" dependencies = [ "cairo-lang-debug", "cairo-lang-defs", @@ -780,9 +963,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-to-casm" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18b7616f1a3c41c4646094b5abf774e558428e9c1eda5d78d7b0638ec5c264e5" +checksum = "add264b156dfb01f18292282a6037070c078acca3bccde05787da1e1c997b78c" dependencies = [ "assert_matches", "cairo-lang-casm", @@ -796,14 +979,14 @@ dependencies = [ "num-bigint", "num-traits", "starknet-types-core", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "cairo-lang-sierra-type-size" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "871077dbc08df5d134dc3975538171c14b266ba405d1298085afdb227216f0a3" +checksum = "7bda5388ef862bc26388e999ac7ad62dd8ab3064720c3483b81fd761b051e627" dependencies = [ "cairo-lang-sierra", "cairo-lang-utils", @@ -811,9 +994,9 @@ dependencies = [ [[package]] name = "cairo-lang-starknet" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f21804eb8931d41e258e7a393afc8ee8858308e95b3ed2e9b6b469ef68a6a50" +checksum = "32d5ed4aa48fe739f643a8c503c14aec0858c31dc73ba4e6a335b77ca7438807" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -836,14 +1019,14 @@ dependencies = [ "serde_json", "smol_str", "starknet-types-core", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "cairo-lang-starknet-classes" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2496bccd68fa0286b35b72c98439316a3a872ef7ec6d881f0dac90b17997490" +checksum = "fe691200b431e51e3d6cfa84f256a3dd2e8405f44d182843fbe124f803d085ff" dependencies = [ "cairo-lang-casm", "cairo-lang-sierra", @@ -859,17 +1042,18 @@ dependencies = [ "sha3", "smol_str", "starknet-types-core", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "cairo-lang-syntax" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d77ea2e35d3610098ff13e373fc519aedc6a5096ed8547081aacfc104ef4422" +checksum = "0a38f1431f22a9487b9b0dd7aef098c9605fe6b8677e0f620547aa69195f7fb5" dependencies = [ "cairo-lang-debug", "cairo-lang-filesystem", + "cairo-lang-primitive-token", "cairo-lang-utils", "num-bigint", "num-traits", @@ -880,9 +1064,9 @@ dependencies = [ [[package]] name = "cairo-lang-syntax-codegen" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b01d505ab26ca9ce829faf3a8dd097f5d7962d2eb8f136017a260694a6a72e8" +checksum = "fd7990586c9bb37eaa875ffeb218bdecf96f87881d03263ebf84fcd46514ca9f" dependencies = [ "genco", "xshell", @@ -890,9 +1074,9 @@ dependencies = [ [[package]] name = "cairo-lang-test-plugin" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f83e082c8ebf81295156f13399f880037c749a9f1fc3f55b1be7e49fe124c6" +checksum = "5432fb1e290bed1c961a6bd778b3b553480b364524e7dbc343495b79b452131b" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -917,9 +1101,9 @@ dependencies = [ [[package]] name = "cairo-lang-test-utils" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb143a22f5a3510df8c4dec76e17c1e36bbcbddcd7915601f6a51a72418c454f" +checksum = "f2b76c55a742da177540d2a0eb39fa50d011998d0ccfdeae8b48ea0e2d7f077f" dependencies = [ "cairo-lang-formatter", "cairo-lang-utils", @@ -930,12 +1114,12 @@ dependencies = [ [[package]] name = "cairo-lang-utils" -version = "2.9.0-dev.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35df943ebcf8e1db11ee9f4f46f843dde5b71639ca79ea0d8caa7973f91d8b12" +checksum = "ff5d7609abc99c15de7d7f90b8441b27e2bd52e930a3014c95a9b620e5d3211a" dependencies = [ "hashbrown 0.14.5", - "indexmap 2.6.0", + "indexmap 2.7.0", "itertools 0.12.1", "num-bigint", "num-traits", @@ -945,14 +1129,14 @@ dependencies = [ [[package]] name = "cairo-native" -version = "0.2.4" +version = "0.2.5" dependencies = [ "anyhow", "aquamarine", - "ark-ec", - "ark-ff", - "ark-secp256k1", - "ark-secp256r1", + "ark-ec 0.5.0", + "ark-ff 0.5.0", + "ark-secp256k1 0.5.0", + "ark-secp256r1 0.5.0", "bumpalo", "cairo-lang-compiler", "cairo-lang-defs", @@ -968,15 +1152,15 @@ dependencies = [ "cairo-lang-test-plugin", "cairo-lang-utils", "cairo-native-runtime", - "cairo-vm 2.0.0-rc1", + "cairo-vm 2.0.0-rc2", "cc", "clap", "colored", "criterion", - "educe", + "educe 0.5.11", "itertools 0.13.0", "keccak", - "lambdaworks-math", + "lambdaworks-math 0.11.0", "lazy_static", "libc", "libloading", @@ -999,7 +1183,7 @@ dependencies = [ "stats_alloc", "tempfile", "test-case", - "thiserror", + "thiserror 2.0.8", "tracing", "tracing-subscriber", "utf8_iter", @@ -1008,7 +1192,7 @@ dependencies = [ [[package]] name = "cairo-native-runtime" -version = "0.2.4" +version = "0.2.5" dependencies = [ "cairo-lang-sierra-gas", "itertools 0.13.0", @@ -1044,7 +1228,7 @@ dependencies = [ "serde_json", "sha2", "sha3", - "starknet-crypto", + "starknet-crypto 0.6.2", "starknet-types-core", "thiserror-no-std", "zip", @@ -1052,20 +1236,20 @@ dependencies = [ [[package]] name = "cairo-vm" -version = "2.0.0-rc1" +version = "2.0.0-rc2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "094da2b352a8a0c8400a26f7db6a75c35279f39cc401e08900a714393f110957" +checksum = "a4484410b4bec788003631814514feb58a2ee06606bae94a3f6502d62585aae1" dependencies = [ "anyhow", - "ark-ff", - "ark-std", + "ark-ff 0.4.2", + "ark-std 0.4.0", "bincode", "bitvec", "cairo-lang-casm", "cairo-lang-starknet", "cairo-lang-starknet-classes", "generic-array", - "hashbrown 0.14.5", + "hashbrown 0.15.2", "hex", "keccak", "lazy_static", @@ -1080,7 +1264,7 @@ dependencies = [ "serde_json", "sha2", "sha3", - "starknet-crypto", + "starknet-crypto 0.7.3", "starknet-types-core", "thiserror-no-std", "wasm-bindgen", @@ -1114,9 +1298,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.2.1" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47" +checksum = "27f657647bcff5394bf56c7317665bbf790a137a50eaaa5c6bfbb9e27a518f2d" dependencies = [ "jobserver", "libc", @@ -1188,9 +1372,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.21" +version = "4.5.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb3b4b9e5a7c7514dfa52869339ee98b3156b0bfb4e8a77c4ff4babb64b1604f" +checksum = "3135e7ec2ef7b10c6ed8950f0f792ed96ee093fa088608f1c76e569722700c84" dependencies = [ "clap_builder", "clap_derive", @@ -1198,9 +1382,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.21" +version = "4.5.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b17a95aa67cc7b5ebd32aa5370189aa0d79069ef1c64ce893bd30fb24bff20ec" +checksum = "30582fc632330df2bd26877bde0c1f4470d57c582bbc070376afcd04d8cb4838" dependencies = [ "anstream", "anstyle", @@ -1217,14 +1401,14 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] name = "clap_lex" -version = "0.7.3" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7" +checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" [[package]] name = "colorchoice" @@ -1244,12 +1428,12 @@ dependencies = [ [[package]] name = "comrak" -version = "0.28.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c93ab3577cca16b4a1d80a88c2e0cd8b6e969e51696f0bbb0d1dcb0157109832" +checksum = "453dcb42e33f7b474d7e0db12e0b8d82802c88f35cf5a1d8c297d0dfcecb154f" dependencies = [ + "bon", "caseless", - "derive_builder", "entities", "memchr", "once_cell", @@ -1280,18 +1464,18 @@ checksum = "32b13ea120a812beba79e34316b3942a857c86ec1593cb34f27bb28272ce2cca" [[package]] name = "const_format" -version = "0.2.33" +version = "0.2.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50c655d81ff1114fb0dcdea9225ea9f0cc712a6f8d189378e82bdf62a473a64b" +checksum = "126f97965c8ad46d6d9163268ff28432e8f6a1196a55578867832e3049df63dd" dependencies = [ "const_format_proc_macros", ] [[package]] name = "const_format_proc_macros" -version = "0.2.33" +version = "0.2.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eff1a44b93f47b1bac19a27932f5c591e43d1ba357ee4f61526c8a25603f0eb1" +checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744" dependencies = [ "proc-macro2", "quote", @@ -1315,9 +1499,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ca741a962e1b0bff6d724a1a0958b686406e853bb14061f218562e1896f95e6" +checksum = "16b80225097f2e5ae4e7179dd2266824648f3e2f49d9134d584b76389d31c4c3" dependencies = [ "libc", ] @@ -1440,7 +1624,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1451,7 +1635,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1466,20 +1650,6 @@ dependencies = [ "ordered-float", ] -[[package]] -name = "dashmap" -version = "6.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf" -dependencies = [ - "cfg-if", - "crossbeam-utils", - "hashbrown 0.14.5", - "lock_api", - "once_cell", - "parking_lot_core", -] - [[package]] name = "deranged" version = "0.3.11" @@ -1500,37 +1670,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "derive_builder" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947" -dependencies = [ - "derive_builder_macro", -] - -[[package]] -name = "derive_builder_core" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn 2.0.89", -] - -[[package]] -name = "derive_builder_macro" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c" -dependencies = [ - "derive_builder_core", - "syn 2.0.89", -] - [[package]] name = "deunicode" version = "1.6.0" @@ -1599,7 +1738,19 @@ dependencies = [ "enum-ordinalize", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", +] + +[[package]] +name = "educe" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7bc049e1bd8cdeb31b68bbd586a9464ecf9f3944af3958a7a9d0f8b9799417" +dependencies = [ + "enum-ordinalize", + "proc-macro2", + "quote", + "syn 2.0.90", ] [[package]] @@ -1646,7 +1797,7 @@ checksum = "0d28318a75d4aead5c4db25382e8ef717932d0346600cacae6357eb5941bc5ff" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1657,19 +1808,19 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" +checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "fastrand" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "486f806e73c5707928240ddc295403b1b93c96a02038563881c4a2fd84b81ac4" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" [[package]] name = "fixedbitset" @@ -1761,7 +1912,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1819,7 +1970,7 @@ checksum = "43eaff6bbc0b3a878361aced5ec6a2818ee7c541c5b33b5880dfa9a86c23e9e7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1912,13 +2063,14 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.15.1" +version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" dependencies = [ "allocator-api2", "equivalent", "foldhash", + "serde", ] [[package]] @@ -2008,7 +2160,7 @@ checksum = "a0eb5a3343abf848c0984fe4604b2b105da9539376e24fc0a3b0007411ae4fd9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2049,12 +2201,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.6.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" +checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" dependencies = [ "equivalent", - "hashbrown 0.15.1", + "hashbrown 0.15.2", "serde", ] @@ -2141,9 +2293,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "540654e97a3f4470a492cd30ff187bc95d89557a903a2bbf112e2fae98104ef2" +checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" [[package]] name = "jobserver" @@ -2209,7 +2361,7 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbc2a4da0d9e52ccfe6306801a112e81a8fc0c76aa3e4449fefeda7fef72bb34" dependencies = [ - "lambdaworks-math", + "lambdaworks-math 0.10.0", "serde", "sha2", "sha3", @@ -2220,6 +2372,16 @@ name = "lambdaworks-math" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d1bd2632acbd9957afc5aeec07ad39f078ae38656654043bf16e046fa2730e23" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "lambdaworks-math" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "708d148956bcdc21ae5c432b4e20bbaa26fd68d5376a3a6c461f41095abea0ba" dependencies = [ "rayon", "serde", @@ -2243,15 +2405,15 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.164" +version = "0.2.168" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" +checksum = "5aaeb2981e0606ca11d79718f8bb01164f1d6ed75080182d3abf017e6d244b6d" [[package]] name = "libloading" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4" +checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34" dependencies = [ "cfg-if", "windows-targets 0.52.6", @@ -2315,7 +2477,7 @@ version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38" dependencies = [ - "hashbrown 0.15.1", + "hashbrown 0.15.2", ] [[package]] @@ -2339,29 +2501,26 @@ dependencies = [ [[package]] name = "melior" -version = "0.19.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5d97014786c173a839839e2a068e82516ad1eb94fca1d40013d3c5e224e7c1e" +checksum = "9ee1cff4225a41563d0517e274eea56d6e07d40004184dda898ef08f421c1546" dependencies = [ - "dashmap", "melior-macro", "mlir-sys", - "once_cell", ] [[package]] name = "melior-macro" -version = "0.12.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef7ae0ba2f96784ec407d58374c8477f5b04ec8c57a114cafef0c8f165c4b288" +checksum = "f4c74bfe1b3e796b3dec1b4a178d813398171658a0f55a3ccb963cc9212022d1" dependencies = [ "comrak", "convert_case", - "once_cell", "proc-macro2", "quote", "regex", - "syn 2.0.89", + "syn 2.0.90", "tblgen-alt", "unindent", ] @@ -2374,9 +2533,9 @@ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "microlp" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4190b5ca62abfbc95a81d57f4a8e3e3872289d656f3eeea5820b3046a1f81d4b" +checksum = "53e0c5664f9959f1c3970d523a22f0319024282cb754358c2afc7e1d45280ae3" dependencies = [ "log", "sprs", @@ -2399,11 +2558,11 @@ dependencies = [ [[package]] name = "mlir-sys" -version = "0.3.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fae0a14b0940736a243fef4a4d96d8cdf8a253272031b63c5e4b1bea207c82b0" +checksum = "21b598f9c0fa7a453eeaa9fe419ae93759c94a66eb6f8a496d195ba596ae3c4d" dependencies = [ - "bindgen 0.70.1", + "bindgen 0.71.1", ] [[package]] @@ -2555,29 +2714,28 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" [[package]] name = "parity-scale-codec" -version = "3.7.0" +version = "3.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8be4817d39f3272f69c59fe05d0535ae6456c2dc2fa1ba02910296c7e0a5c590" +checksum = "306800abfa29c7f16596b5970a588435e3d5b3149683d00c12b699cc19f895ee" dependencies = [ "arrayvec", "bitvec", "byte-slice-cast", "impl-trait-for-tuples", "parity-scale-codec-derive", - "rustversion", "serde", ] [[package]] name = "parity-scale-codec-derive" -version = "3.7.0" +version = "3.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8781a75c6205af67215f382092b6e0a4ff3734798523e69073d4bcd294ec767b" +checksum = "d830939c76d294956402033aee57a6da7b438f2294eb94864c37b0569053a42c" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.89", + "syn 1.0.109", ] [[package]] @@ -2645,7 +2803,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.6.0", + "indexmap 2.7.0", ] [[package]] @@ -2711,15 +2869,15 @@ dependencies = [ [[package]] name = "portable-atomic" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" +checksum = "280dc24453071f1b63954171985a0b0d30058d287960968b9b2aca264c8d4ee6" [[package]] name = "portable-atomic-util" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90a7d5beecc52a491b54d6dd05c7a45ba1801666a5baad9fdbfc6fef8d2d206c" +checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507" dependencies = [ "portable-atomic", ] @@ -2772,7 +2930,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" dependencies = [ "proc-macro2", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2810,9 +2968,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.91" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "307e3004becf10f5a6e0d59d20f3cd28231b0e0827a96cd3e0ce6d14bc1e4bb3" +checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" dependencies = [ "unicode-ident", ] @@ -2925,9 +3083,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.7" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" +checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" dependencies = [ "bitflags", ] @@ -2940,7 +3098,7 @@ checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" dependencies = [ "getrandom", "libredox", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3035,7 +3193,7 @@ dependencies = [ "regex", "relative-path", "rustc_version", - "syn 2.0.89", + "syn 2.0.90", "unicode-ident", ] @@ -3045,12 +3203,12 @@ version = "0.17.0-pre.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "719825638c59fd26a55412a24561c7c5bcf54364c88b9a7a04ba08a6eafaba8d" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.7.0", "lock_api", "oorandom", "parking_lot", "rust-analyzer-salsa-macros", - "rustc-hash", + "rustc-hash 1.1.0", "smallvec", "tracing", "triomphe", @@ -3065,7 +3223,7 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3084,6 +3242,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc-hash" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" + [[package]] name = "rustc_version" version = "0.4.1" @@ -3095,15 +3259,15 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.41" +version = "0.38.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6" +checksum = "f93dc38ecbab2eb790ff964bb77fa94faf256fd3e73285fd7ba0903b76bedb85" dependencies = [ "bitflags", "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -3149,7 +3313,7 @@ dependencies = [ "semver", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3191,7 +3355,7 @@ dependencies = [ "proc-macro2", "quote", "serde_derive_internals", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3211,22 +3375,22 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.215" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" +checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.215" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" +checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3237,7 +3401,7 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3392,6 +3556,25 @@ dependencies = [ "zeroize", ] +[[package]] +name = "starknet-crypto" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ded22ccf4cb9e572ce3f77de6066af53560cd2520d508876c83bb1e6b29d5cbc" +dependencies = [ + "crypto-bigint", + "hex", + "hmac", + "num-bigint", + "num-integer", + "num-traits", + "rfc6979", + "sha2", + "starknet-curve 0.5.1", + "starknet-types-core", + "zeroize", +] + [[package]] name = "starknet-crypto-codegen" version = "0.3.3" @@ -3400,7 +3583,7 @@ checksum = "bbc159a1934c7be9761c237333a57febe060ace2bc9e3b337a59a37af206d19f" dependencies = [ "starknet-curve 0.4.2", "starknet-ff", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3427,7 +3610,7 @@ version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7abf1b44ec5b18d87c1ae5f54590ca9d0699ef4dd5b2ffa66fc97f24613ec585" dependencies = [ - "ark-ff", + "ark-ff 0.4.2", "crypto-bigint", "getrandom", "hex", @@ -3440,7 +3623,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa1b9e01ccb217ab6d475c5cda05dbb22c30029f7bb52b192a010a00d77a3d74" dependencies = [ "lambdaworks-crypto", - "lambdaworks-math", + "lambdaworks-math 0.10.0", "lazy_static", "num-bigint", "num-integer", @@ -3492,9 +3675,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.89" +version = "2.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d46482f1c1c87acd84dea20c1bf5ebff4c757009ed6bf19cfd36fb10e92c4e" +checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" dependencies = [ "proc-macro2", "quote", @@ -3516,7 +3699,7 @@ dependencies = [ "bindgen 0.69.5", "cc", "paste", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3561,7 +3744,7 @@ dependencies = [ "cfg-if", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3572,7 +3755,7 @@ checksum = "5c89e72a01ed4c579669add59014b9a524d609c0c88c6a585ce37485879f6ffb" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "test-case-core", ] @@ -3582,7 +3765,16 @@ version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08f5383f3e0071702bf93ab5ee99b52d26936be9dedd9413067cbdcddcb6141a" +dependencies = [ + "thiserror-impl 2.0.8", ] [[package]] @@ -3593,7 +3785,18 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f357fcec90b3caef6623a099691be676d033b40a058ac95d2a6ade6fa0c943" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", ] [[package]] @@ -3628,9 +3831,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.36" +version = "0.3.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" +checksum = "35e7868883861bd0e56d9ac6efcaaca0d6d5d82a2a7ec8209ff492c07cf37b21" dependencies = [ "deranged", "num-conv", @@ -3706,7 +3909,7 @@ version = "0.22.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.7.0", "serde", "serde_spanned", "toml_datetime", @@ -3715,9 +3918,9 @@ dependencies = [ [[package]] name = "tracing" -version = "0.1.40" +version = "0.1.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ "pin-project-lite", "tracing-attributes", @@ -3726,20 +3929,20 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.27" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] name = "tracing-core" -version = "0.1.32" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" dependencies = [ "once_cell", "valuable", @@ -3758,9 +3961,9 @@ dependencies = [ [[package]] name = "tracing-serde" -version = "0.1.3" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1" +checksum = "704b1aeb7be0d0a84fc9828cae51dab5970fee5088f83d1dd7ee6f6246fc6ff1" dependencies = [ "serde", "tracing-core", @@ -3768,9 +3971,9 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.18" +version = "0.3.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" dependencies = [ "matchers", "nu-ansi-term", @@ -3821,7 +4024,7 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c878a167baa8afd137494101a688ef8c67125089ff2249284bd2b5f9bfedb815" dependencies = [ - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3951,7 +4154,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "wasm-bindgen-shared", ] @@ -3973,7 +4176,7 @@ checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -4252,7 +4455,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -4272,7 +4475,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 7408f8848..d3c9237fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cairo-native" -version = "0.2.4" +version = "0.2.5" edition = "2021" license = "Apache-2.0" description = "A compiler to convert Cairo's intermediate representation Sierra code to MLIR." @@ -59,19 +59,19 @@ normal = ["aquamarine"] [dependencies] aquamarine = "0.5.0" bumpalo = "3.16.0" -cairo-lang-compiler = "2.9.0-dev.0" -cairo-lang-defs = "2.9.0-dev.0" -cairo-lang-filesystem = "2.9.0-dev.0" -cairo-lang-semantic = "2.9.0-dev.0" -cairo-lang-sierra = "2.9.0-dev.0" -cairo-lang-sierra-generator = "2.9.0-dev.0" +cairo-lang-compiler = "2.9.2" +cairo-lang-defs = "2.9.2" +cairo-lang-filesystem = "2.9.2" +cairo-lang-semantic = "2.9.2" +cairo-lang-sierra = "2.9.2" +cairo-lang-sierra-generator = "2.9.2" educe = "0.5.11" # can't update until https://github.com/magiclen/educe/issues/27 itertools = "0.13.0" lazy_static = "1.5" libc = "0.2" llvm-sys = "191.0.0" -melior = { version = "0.19.0", features = ["ods-dialects"] } -mlir-sys = { version = "0.3.0" } +melior = { version = "0.20.0", features = ["ods-dialects", "helpers"] } +mlir-sys = { version = "0.4.1" } num-bigint = "0.4.6" num-traits = "0.2" starknet-types-core = { version = "0.1.7", default-features = false, features = [ @@ -80,29 +80,29 @@ starknet-types-core = { version = "0.1.7", default-features = false, features = "num-traits", ] } tempfile = "3.13" -thiserror = "1.0.64" +thiserror = "2.0.8" tracing = "0.1" utf8_iter = "1.0.4" # CLI dependencies -cairo-lang-sierra-ap-change = "2.9.0-dev.0" -cairo-lang-sierra-gas = "2.9.0-dev.0" -cairo-lang-starknet = "2.9.0-dev.0" -cairo-lang-utils = "2.9.0-dev.0" -cairo-lang-starknet-classes = "2.9.0-dev.0" -cairo-native-runtime = { version = "0.2.4", path = "runtime", optional = true } -clap = { version = "4.5.19", features = ["derive"], optional = true } -libloading = "0.8.5" -tracing-subscriber = { version = "0.3.18", features = [ +cairo-lang-sierra-ap-change = "2.9.2" +cairo-lang-sierra-gas = "2.9.2" +cairo-lang-starknet = "2.9.2" +cairo-lang-utils = "2.9.2" +cairo-lang-starknet-classes = "2.9.2" +cairo-native-runtime = { version = "0.2.5", path = "runtime", optional = true } +clap = { version = "4.5.23", features = ["derive"], optional = true } +libloading = "0.8.6" +tracing-subscriber = { version = "0.3.19", features = [ "env-filter", "json", "registry", ], optional = true } serde = { version = "1.0", features = ["derive"] } anyhow = { version = "1.0", optional = true } -cairo-lang-test-plugin = { version = "2.9.0-dev.0", optional = true } -cairo-lang-runner = { version = "2.9.0-dev.0", optional = true } +cairo-lang-test-plugin = { version = "2.9.2", optional = true } +cairo-lang-runner = { version = "2.9.2", optional = true } colored = { version = "2.1.0", optional = true } # needed to interface with cairo-lang-* keccak = "0.1.5" @@ -113,18 +113,18 @@ serde_json = { version = "1.0.128" } stats_alloc = "0.1.10" # for the syscallhandler stub to match blockifier -ark-secp256k1 = "0.4.0" -ark-secp256r1 = "0.4.0" -ark-ec = "0.4.2" -ark-ff = "0.4.2" +ark-secp256k1 = "0.5.0" +ark-secp256r1 = "0.5.0" +ark-ec = "0.5.0" +ark-ff = "0.5.0" num-integer = "0.1.46" [dev-dependencies] cairo-vm = { version = "2.0.0-rc0", features = ["cairo-1-hints"] } -cairo-lang-runner = "2.9.0-dev.0" -cairo-lang-semantic = { version = "2.9.0-dev.0", features = ["testing"] } +cairo-lang-runner = "2.9.2" +cairo-lang-semantic = { version = "2.9.2", features = ["testing"] } criterion = { version = "0.5.1", features = ["html_reports"] } -lambdaworks-math = "0.10.0" +lambdaworks-math = "0.11.0" pretty_assertions_sorted = "1.2.3" proptest = "1.5.0" rstest = "0.23.0" @@ -134,7 +134,7 @@ serde_json = { version = "1.0.128" } rayon = "1.10.0" [build-dependencies] -cc = "1.1.28" +cc = "1.2.3" [profile.optimized-dev] inherits = "dev" diff --git a/Makefile b/Makefile index b028dbcd2..1b4b1f942 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ # Environment detection. UNAME := $(shell uname) -CAIRO_2_VERSION = 2.9.0-dev.0 -SCARB_VERSION = 2.8.4 +CAIRO_2_VERSION = 2.9.2 +SCARB_VERSION = 2.9.2 # Usage is the default target for newcomers running `make`. .PHONY: usage @@ -66,7 +66,7 @@ test: check-llvm needs-cairo2 build-alexandria runtime-ci cargo test --profile ci --features=scarb,with-cheatcode,with-debug-utils .PHONY: test-cairo -test-cairo: check-llvm needs-cairo2 build-alexandria runtime-ci +test-cairo: check-llvm needs-cairo2 runtime-ci cargo r --profile ci --bin cairo-native-test -- corelib .PHONY: proptest diff --git a/benches/benches.rs b/benches/benches.rs index 92bd300ab..9f034ab4e 100644 --- a/benches/benches.rs +++ b/benches/benches.rs @@ -105,7 +105,7 @@ fn criterion_benchmark(c: &mut Criterion) { let result = linear_search_runner .run_function_with_starknet_context( linear_search_function, - &[], + vec![], Some(usize::MAX), StarknetState::default(), ) @@ -145,7 +145,7 @@ fn criterion_benchmark(c: &mut Criterion) { let result = factorial_runner .run_function_with_starknet_context( factorial_function, - &[], + vec![], Some(usize::MAX), StarknetState::default(), ) @@ -184,7 +184,7 @@ fn criterion_benchmark(c: &mut Criterion) { let result = fibonacci_runner .run_function_with_starknet_context( fibonacci_function, - &[], + vec![], Some(usize::MAX), StarknetState::default(), ) @@ -225,7 +225,7 @@ fn criterion_benchmark(c: &mut Criterion) { let result = logistic_map_runner .run_function_with_starknet_context( logistic_map_function, - &[], + vec![], Some(usize::MAX), StarknetState::default(), ) diff --git a/benches/libfuncs.rs b/benches/libfuncs.rs index edcebd370..706920420 100644 --- a/benches/libfuncs.rs +++ b/benches/libfuncs.rs @@ -38,7 +38,7 @@ pub fn bench_libfuncs(c: &mut Criterion) { let res = vm_runner .run_function_with_starknet_context( entry, - &[], + vec![], Some(usize::MAX), StarknetState::default(), ) diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 95646b3ca..f61f8260e 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cairo-native-runtime" -version = "0.2.4" +version = "0.2.5" description = "The runtime for cairo-native." edition = "2021" license = "Apache-2.0" @@ -15,7 +15,7 @@ starknet-types-core = { version = "0.1.7", default-features = false, features = "serde", "hash", ] } -cairo-lang-sierra-gas = "2.9.0-dev.0" +cairo-lang-sierra-gas = "2.9.2" starknet-curve = "0.5.1" lazy_static = "1.5.0" rand = "0.8.5" diff --git a/tests/alexandria/Scarb.lock b/tests/alexandria/Scarb.lock index 94ac822ea..5619e7201 100644 --- a/tests/alexandria/Scarb.lock +++ b/tests/alexandria/Scarb.lock @@ -13,7 +13,7 @@ dependencies = [ [[package]] name = "alexandria_bytes" version = "0.1.0" -source = "git+https://github.com/keep-starknet-strange/alexandria.git?rev=95d98a5182001d07673b856a356eff0e6bd05354#95d98a5182001d07673b856a356eff0e6bd05354" +source = "git+https://github.com/ishay-starkware/alexandria?rev=e4eb87718e3a870a792ca83361860be800c90acd#e4eb87718e3a870a792ca83361860be800c90acd" dependencies = [ "alexandria_data_structures", "alexandria_math", @@ -22,7 +22,7 @@ dependencies = [ [[package]] name = "alexandria_data_structures" version = "0.2.0" -source = "git+https://github.com/keep-starknet-strange/alexandria.git?rev=95d98a5182001d07673b856a356eff0e6bd05354#95d98a5182001d07673b856a356eff0e6bd05354" +source = "git+https://github.com/ishay-starkware/alexandria?rev=e4eb87718e3a870a792ca83361860be800c90acd#e4eb87718e3a870a792ca83361860be800c90acd" dependencies = [ "alexandria_encoding", ] @@ -30,9 +30,10 @@ dependencies = [ [[package]] name = "alexandria_encoding" version = "0.1.0" -source = "git+https://github.com/keep-starknet-strange/alexandria.git?rev=95d98a5182001d07673b856a356eff0e6bd05354#95d98a5182001d07673b856a356eff0e6bd05354" +source = "git+https://github.com/ishay-starkware/alexandria?rev=e4eb87718e3a870a792ca83361860be800c90acd#e4eb87718e3a870a792ca83361860be800c90acd" dependencies = [ "alexandria_bytes", + "alexandria_data_structures", "alexandria_math", "alexandria_numeric", ] @@ -40,12 +41,12 @@ dependencies = [ [[package]] name = "alexandria_math" version = "0.2.1" -source = "git+https://github.com/keep-starknet-strange/alexandria.git?rev=95d98a5182001d07673b856a356eff0e6bd05354#95d98a5182001d07673b856a356eff0e6bd05354" +source = "git+https://github.com/ishay-starkware/alexandria?rev=e4eb87718e3a870a792ca83361860be800c90acd#e4eb87718e3a870a792ca83361860be800c90acd" [[package]] name = "alexandria_numeric" version = "0.1.0" -source = "git+https://github.com/keep-starknet-strange/alexandria.git?rev=95d98a5182001d07673b856a356eff0e6bd05354#95d98a5182001d07673b856a356eff0e6bd05354" +source = "git+https://github.com/ishay-starkware/alexandria?rev=e4eb87718e3a870a792ca83361860be800c90acd#e4eb87718e3a870a792ca83361860be800c90acd" dependencies = [ "alexandria_math", "alexandria_searching", @@ -54,7 +55,7 @@ dependencies = [ [[package]] name = "alexandria_searching" version = "0.1.0" -source = "git+https://github.com/keep-starknet-strange/alexandria.git?rev=95d98a5182001d07673b856a356eff0e6bd05354#95d98a5182001d07673b856a356eff0e6bd05354" +source = "git+https://github.com/ishay-starkware/alexandria?rev=e4eb87718e3a870a792ca83361860be800c90acd#e4eb87718e3a870a792ca83361860be800c90acd" dependencies = [ "alexandria_data_structures", ] diff --git a/tests/alexandria/Scarb.toml b/tests/alexandria/Scarb.toml index 5ef146bd0..ef1ce6b5e 100644 --- a/tests/alexandria/Scarb.toml +++ b/tests/alexandria/Scarb.toml @@ -1,11 +1,13 @@ [package] name = "alexandria" version = "0.1.0" -cairo-version = "2.8.4" +cairo-version = "2.9.2" +edition = "2024_07" # See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html [dependencies] -alexandria_math = { rev = "95d98a5182001d07673b856a356eff0e6bd05354", git = "https://github.com/keep-starknet-strange/alexandria.git" } -alexandria_data_structures = { rev = "95d98a5182001d07673b856a356eff0e6bd05354", git = "https://github.com/keep-starknet-strange/alexandria.git" } -alexandria_encoding = { rev = "95d98a5182001d07673b856a356eff0e6bd05354", git = "https://github.com/keep-starknet-strange/alexandria.git" } +# todo: change to https://github.com/keep-starknet-strange/alexandria.git after pr is merged for 2.9.2 +alexandria_math = { rev = "e4eb87718e3a870a792ca83361860be800c90acd", git = "https://github.com/ishay-starkware/alexandria" } +alexandria_data_structures = { rev = "e4eb87718e3a870a792ca83361860be800c90acd", git = "https://github.com/ishay-starkware/alexandria" } +alexandria_encoding = { rev = "e4eb87718e3a870a792ca83361860be800c90acd", git = "https://github.com/ishay-starkware/alexandria" } diff --git a/tests/common.rs b/tests/common.rs index 52aa52d96..a768eec11 100644 --- a/tests/common.rs +++ b/tests/common.rs @@ -256,7 +256,7 @@ pub fn run_native_program( pub fn run_vm_program( program: &(String, Program, SierraCasmRunner), entry_point: &str, - args: &[Arg], + args: Vec, gas: Option, ) -> Result { let runner = &program.2; @@ -401,7 +401,7 @@ pub fn compare_inputless_program(program_path: &str) { let program: (String, Program, SierraCasmRunner) = load_cairo_path(program_path); let program = &program; - let result_vm = run_vm_program(program, "main", &[], Some(DEFAULT_GAS as usize)).unwrap(); + let result_vm = run_vm_program(program, "main", vec![], Some(DEFAULT_GAS as usize)).unwrap(); let result_native = run_native_program( program, "main", diff --git a/tests/tests/alexandria.rs b/tests/tests/alexandria.rs index 36eef40dd..d9f61fdbd 100644 --- a/tests/tests/alexandria.rs +++ b/tests/tests/alexandria.rs @@ -24,7 +24,7 @@ fn compare_inputless_function(function_name: &str) { let program = &program; let result_vm = - run_vm_program(program, function_name, &[], Some(DEFAULT_GAS as usize)).unwrap(); + run_vm_program(program, function_name, vec![], Some(DEFAULT_GAS as usize)).unwrap(); let result_native = run_native_program( program, function_name, diff --git a/tests/tests/arrays.rs b/tests/tests/arrays.rs index 768e3ee18..ea7b43e05 100644 --- a/tests/tests/arrays.rs +++ b/tests/tests/arrays.rs @@ -55,7 +55,7 @@ fn array_get_test() { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(Felt::from(10)), Arg::Value(Felt::from(5))], + vec![Arg::Value(Felt::from(10)), Arg::Value(Felt::from(5))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -80,7 +80,7 @@ proptest! { #[test] fn array_get_test_proptest(value in any_felt(), idx in 0u32..26) { let program = &ARRAY_GET; - let result_vm = run_vm_program(program, "run_test", &[ + let result_vm = run_vm_program(program, "run_test", vec![ Arg::Value(Felt::from_bytes_be(&value.to_bytes_be())), Arg::Value(Felt::from(idx)) ], Some(DEFAULT_GAS as usize)).unwrap(); diff --git a/tests/tests/boolean.rs b/tests/tests/boolean.rs index 679f8e527..274995856 100644 --- a/tests/tests/boolean.rs +++ b/tests/tests/boolean.rs @@ -113,7 +113,7 @@ fn felt252_to_bool_bug() { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(Felt::from(a))], + vec![Arg::Value(Felt::from(a))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -137,7 +137,7 @@ fn felt252_to_bool_bug() { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(Felt::from(a))], + vec![Arg::Value(Felt::from(a))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -162,7 +162,7 @@ proptest! { #[test] fn bool_to_felt252_proptest(a: bool) { let program = &BOOL_TO_FELT252; - let result_vm = run_vm_program(program, "run_test", &[ + let result_vm = run_vm_program(program, "run_test", vec![ Arg::Value(Felt::from(a)), ], Some(DEFAULT_GAS as usize)).unwrap(); let result_native = run_native_program( @@ -185,7 +185,7 @@ proptest! { #[test] fn bool_not_proptest(a: bool) { let program = &BOOL_NOT; - let result_vm = run_vm_program(program, "run_test", &[ + let result_vm = run_vm_program(program, "run_test", vec![ Arg::Value(Felt::from(a)), ], Some(DEFAULT_GAS as usize)).unwrap(); let result_native = run_native_program( @@ -208,7 +208,7 @@ proptest! { #[test] fn bool_and_proptest(a: bool, b: bool) { let program = &BOOL_AND; - let result_vm = run_vm_program(program, "run_test", &[ + let result_vm = run_vm_program(program, "run_test", vec![ Arg::Value(Felt::from(a)), Arg::Value(Felt::from(b)) ], Some(DEFAULT_GAS as usize)).unwrap(); @@ -232,7 +232,7 @@ proptest! { #[test] fn bool_or_proptest(a: bool, b: bool) { let program = &BOOL_OR; - let result_vm = run_vm_program(program, "run_test", &[ + let result_vm = run_vm_program(program, "run_test", vec![ Arg::Value(Felt::from(a)), Arg::Value(Felt::from(b)) ], Some(DEFAULT_GAS as usize)).unwrap(); @@ -256,7 +256,7 @@ proptest! { #[test] fn bool_xor_proptest(a: bool, b: bool) { let program = &BOOL_XOR; - let result_vm = run_vm_program(program, "run_test", &[ + let result_vm = run_vm_program(program, "run_test", vec![ Arg::Value(Felt::from(a)), Arg::Value(Felt::from(b)) ], Some(DEFAULT_GAS as usize)).unwrap(); diff --git a/tests/tests/dict.rs b/tests/tests/dict.rs index 1be5b1cd6..92fd1c194 100644 --- a/tests/tests/dict.rs +++ b/tests/tests/dict.rs @@ -28,7 +28,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], + vec![Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], Some(DEFAULT_GAS as usize), ) .unwrap(); diff --git a/tests/tests/ec.rs b/tests/tests/ec.rs index c13e2c944..2ff90c7f0 100644 --- a/tests/tests/ec.rs +++ b/tests/tests/ec.rs @@ -39,7 +39,8 @@ lazy_static! { #[test] fn ec_point_zero() { let program = &EC_POINT_ZERO; - let result_vm = run_vm_program(program, "run_test", &[], Some(DEFAULT_GAS as usize)).unwrap(); + let result_vm = + run_vm_program(program, "run_test", vec![], Some(DEFAULT_GAS as usize)).unwrap(); let result_native = run_native_program( program, "run_test", @@ -69,7 +70,7 @@ fn ec_point_from_x_big() { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(x)], + vec![Arg::Value(x)], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -97,7 +98,7 @@ fn ec_point_from_x_small() { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(x)], + vec![Arg::Value(x)], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -125,7 +126,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], + vec![Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -151,7 +152,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be()))], + vec![Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be()))], Some(DEFAULT_GAS as usize), ) .unwrap(); diff --git a/tests/tests/felt252.rs b/tests/tests/felt252.rs index 9449fd549..a8b16c94c 100644 --- a/tests/tests/felt252.rs +++ b/tests/tests/felt252.rs @@ -63,7 +63,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], + vec![Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -89,7 +89,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], + vec![Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -115,7 +115,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], + vec![Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -141,7 +141,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], + vec![Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], Some(DEFAULT_GAS as usize), ) .unwrap(); diff --git a/tests/tests/libfuncs.rs b/tests/tests/libfuncs.rs index 08446ada0..9b6c9d7b6 100644 --- a/tests/tests/libfuncs.rs +++ b/tests/tests/libfuncs.rs @@ -28,7 +28,7 @@ fn enum_init() { } }; - let result_vm = run_vm_program(&program, "run_test", &[], None).unwrap(); + let result_vm = run_vm_program(&program, "run_test", vec![], None).unwrap(); let result_native = run_native_program( &program, "run_test", @@ -80,7 +80,7 @@ fn enum_match() { } }; - let result_vm = run_vm_program(&program, "match_a", &[], None).unwrap(); + let result_vm = run_vm_program(&program, "match_a", vec![], None).unwrap(); let result_native = run_native_program( &program, "match_a", @@ -97,7 +97,7 @@ fn enum_match() { ) .unwrap(); - let result_vm = run_vm_program(&program, "match_b", &[], None).unwrap(); + let result_vm = run_vm_program(&program, "match_b", vec![], None).unwrap(); let result_native = run_native_program( &program, "match_b", diff --git a/tests/tests/programs.rs b/tests/tests/programs.rs index 96c7e6517..59d983bde 100644 --- a/tests/tests/programs.rs +++ b/tests/tests/programs.rs @@ -118,7 +118,7 @@ fn fib() { let result_vm = run_vm_program( &FIB, "run_test", - &[Arg::Value(Felt::from(10))], + vec![Arg::Value(Felt::from(10))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -144,7 +144,7 @@ fn logistic_map() { let result_vm = run_vm_program( &LOGISTIC_MAP, "run_test", - &[Arg::Value(Felt::from(1000))], + vec![Arg::Value(Felt::from(1000))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -170,7 +170,7 @@ fn pedersen() { let result_vm = run_vm_program( &PEDERSEN, "run_test", - &[ + vec![ Arg::Value( Felt::from_dec_str( "2163739901324492107409690946633517860331020929182861814098856895601180685", @@ -216,7 +216,7 @@ fn factorial() { let result_vm = run_vm_program( &FACTORIAL, "run_test", - &[Arg::Value(Felt::from(13))], + vec![Arg::Value(Felt::from(13))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -243,7 +243,7 @@ proptest! { let result_vm = run_vm_program( &FIB, "run_test", - &[Arg::Value(Felt::from(n))], + vec![Arg::Value(Felt::from(n))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -268,7 +268,7 @@ proptest! { let result_vm = run_vm_program( &LOGISTIC_MAP, "run_test", - &[Arg::Value(Felt::from(n))], + vec![Arg::Value(Felt::from(n))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -293,7 +293,7 @@ proptest! { let result_vm = run_vm_program( &FACTORIAL, "run_test", - &[Arg::Value(Felt::from(n))], + vec![Arg::Value(Felt::from(n))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -318,7 +318,7 @@ proptest! { let result_vm = run_vm_program( &PEDERSEN, "run_test", - &[Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], + vec![Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be()))], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -344,7 +344,7 @@ proptest! { let result_vm = run_vm_program( &POSEIDON, "run_test", - &[Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), + vec![Arg::Value(Felt::from_bytes_be(&a.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&b.clone().to_bytes_be())), Arg::Value(Felt::from_bytes_be(&c.clone().to_bytes_be()))], Some(DEFAULT_GAS as usize), @@ -373,7 +373,7 @@ fn self_referencing_struct() { let result_vm = run_vm_program( &SELF_REFERENCING, "run_test", - &[], + vec![], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -396,7 +396,7 @@ fn self_referencing_struct() { #[test] fn no_op() { - let result_vm = run_vm_program(&NO_OP, "run_test", &[], Some(DEFAULT_GAS as usize)).unwrap(); + let result_vm = run_vm_program(&NO_OP, "run_test", vec![], Some(DEFAULT_GAS as usize)).unwrap(); let result_native = run_native_program( &NO_OP, "run_test", diff --git a/tests/tests/uint.rs b/tests/tests/uint.rs index b4529502e..d29e671be 100644 --- a/tests/tests/uint.rs +++ b/tests/tests/uint.rs @@ -442,7 +442,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -468,7 +468,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -494,7 +494,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -520,7 +520,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -546,7 +546,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into())], + vec![Arg::Value(a.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -574,7 +574,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -600,7 +600,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -626,7 +626,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -652,7 +652,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -678,7 +678,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into())], + vec![Arg::Value(a.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -706,7 +706,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -732,7 +732,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -758,7 +758,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -784,7 +784,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -810,7 +810,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into())], + vec![Arg::Value(a.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -838,7 +838,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -864,7 +864,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -890,7 +890,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -916,7 +916,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -942,7 +942,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into())], + vec![Arg::Value(a.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -970,7 +970,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -996,7 +996,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -1022,7 +1022,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -1048,7 +1048,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into()), Arg::Value(b.into())], + vec![Arg::Value(a.into()), Arg::Value(b.into())], Some(DEFAULT_GAS as usize), ) .unwrap(); @@ -1074,7 +1074,7 @@ proptest! { let result_vm = run_vm_program( program, "run_test", - &[Arg::Value(a.into())], + vec![Arg::Value(a.into())], Some(DEFAULT_GAS as usize), ) .unwrap();