From 09a86f076f9fcb403008b0ac44f602ab0788a01a Mon Sep 17 00:00:00 2001 From: Mateusz Kowalski Date: Tue, 17 Dec 2024 12:00:55 +0100 Subject: [PATCH] Change version to match compiler's --- .github/workflows/ci.yml | 9 +++++++-- Cargo.toml | 5 +++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7fbaaf4..79f9d2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,10 +16,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@master + with: + toolchain: nightly + components: rustfmt - name: Run cargo fmt - run: rustup toolchain install nightly && rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt && cargo +nightly fmt -- --check + run: cargo +nightly fmt --check + + - uses: dtolnay/rust-toolchain@stable - name: Run cargo clippy run: cargo clippy -- -D warnings test: diff --git a/Cargo.toml b/Cargo.toml index 13f215e..99dd442 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,11 @@ annotate-snippets = "0.11.5" num-bigint = "0.4.6" if_chain = "1.0.2" +# Here we specify real dependency specifications for Cairo crates *if* currently we want to use +# a particular unreleased commit (which is frequent mid-development). +# We list all Cairo crates that go into Scarb's compilation unit even if Scarb itself does not depend +# on some of them directly. +# This ensures no duplicate instances of Cairo crates are pulled in by mistake. [patch.crates-io] cairo-lang-compiler = { git = "https://github.com/starkware-libs/cairo", rev = "ca2dceb" } cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", rev = "ca2dceb" }