diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7169175..06b39d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.79.0 - uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 + # Hack for Rust 1.80 - type inference went crazy and didn't allow to build a library + - run: rustup default 1.79.0 - run: cargo test --release rustfmt: @@ -23,8 +25,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.79.0 - uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 + # Hack for Rust 1.79 - rustfmt is just not there? + - run: rustup component add rustfmt - run: cargo fmt --check clippy: @@ -35,8 +39,10 @@ jobs: RUSTFLAGS: "-Dwarnings" steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.79.0 - uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 + # Hack for Rust 1.79 - clippy is just not there? + - run: rustup component add clippy - run: cargo lint typos: diff --git a/Cargo.lock b/Cargo.lock index 8e400d3..e9b67c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -251,11 +251,11 @@ dependencies = [ [[package]] name = "cairo-lang-casm" -version = "2.7.0-rc.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e67d781fe3f8a8edfeb308e012b1e1a575bc2f1818e264b98758699602826e5" +checksum = "4a43421bf72645b3a562d264747166d6f093e960a69dfa38b67bb3209e370366" dependencies = [ - "cairo-lang-utils 2.7.0-rc.0", + "cairo-lang-utils 2.7.0", "indoc 2.0.5", "num-bigint", "num-traits 0.2.19", @@ -407,11 +407,11 @@ dependencies = [ [[package]] name = "cairo-lang-eq-solver" -version = "2.7.0-rc.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70bcca24edb847fc14242ce89e5e942dbca3db7cd8270d44cf4b6296998b8bcc" +checksum = "eaa8ac24c97770739f5a78d630b8515273c8b9f4aff34e1f88b988fac50340de" dependencies = [ - "cairo-lang-utils 2.7.0-rc.0", + "cairo-lang-utils 2.7.0", "good_lp", ] @@ -706,12 +706,12 @@ dependencies = [ [[package]] name = "cairo-lang-sierra" -version = "2.7.0-rc.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89b56bc9e96b479ae74e30b1004a7599480e3850b5d7a492788036807568eebe" +checksum = "918fb0611203fb8cdd1fcdb434f395a59e0ebb0db64b11a0e15bfbfb03552821" dependencies = [ "anyhow", - "cairo-lang-utils 2.7.0-rc.0", + "cairo-lang-utils 2.7.0", "const-fnv1a-hash", "convert_case", "derivative", @@ -759,14 +759,14 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-ap-change" -version = "2.7.0-rc.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c80caa2c4202dfc58bba56e4b0bebc8152dc06f979342aea6c5310566bcfa26d" +checksum = "7fa1834ec729e89fcbd00df03f2a64a18515fcf07eb18dfef39afe020a10955d" dependencies = [ - "cairo-lang-eq-solver 2.7.0-rc.0", - "cairo-lang-sierra 2.7.0-rc.0", + "cairo-lang-eq-solver 2.7.0", + "cairo-lang-sierra 2.7.0", "cairo-lang-sierra-type-size", - "cairo-lang-utils 2.7.0-rc.0", + "cairo-lang-utils 2.7.0", "itertools 0.12.1", "num-bigint", "num-traits 0.2.19", @@ -800,14 +800,14 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-gas" -version = "2.7.0-rc.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40eebf3d027a5663a47679319cf9aad312cd417a47afb638f34bf83ba2e45944" +checksum = "6b00927d39f910dd5ae1047cef9b46b2ee11617d33d290f875bc00dfc7e3d992" dependencies = [ - "cairo-lang-eq-solver 2.7.0-rc.0", - "cairo-lang-sierra 2.7.0-rc.0", + "cairo-lang-eq-solver 2.7.0", + "cairo-lang-sierra 2.7.0", "cairo-lang-sierra-type-size", - "cairo-lang-utils 2.7.0-rc.0", + "cairo-lang-utils 2.7.0", "itertools 0.12.1", "num-bigint", "num-traits 0.2.19", @@ -912,17 +912,17 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-to-casm" -version = "2.7.0-rc.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3af5f65598f90160754c7d9e277ec6eb187b6f4fa018676109666c1f6cb3024" +checksum = "67bd155770abf91d4290a31b0c0a1fb393ecee85eb0af40c16893b4601eff4d6" dependencies = [ "assert_matches", - "cairo-lang-casm 2.7.0-rc.0", - "cairo-lang-sierra 2.7.0-rc.0", - "cairo-lang-sierra-ap-change 2.7.0-rc.0", - "cairo-lang-sierra-gas 2.7.0-rc.0", + "cairo-lang-casm 2.7.0", + "cairo-lang-sierra 2.7.0", + "cairo-lang-sierra-ap-change 2.7.0", + "cairo-lang-sierra-gas 2.7.0", "cairo-lang-sierra-type-size", - "cairo-lang-utils 2.7.0-rc.0", + "cairo-lang-utils 2.7.0", "indoc 2.0.5", "itertools 0.12.1", "num-bigint", @@ -933,12 +933,12 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-type-size" -version = "2.7.0-rc.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1f5b3fab76e649246e17f5c12b584a2e0b729fecafbf23f24b86a8250df8849" +checksum = "fbae9458999da692c272501678b6cfec358a6bcadb54921bf35d21afdcd91251" dependencies = [ - "cairo-lang-sierra 2.7.0-rc.0", - "cairo-lang-utils 2.7.0-rc.0", + "cairo-lang-sierra 2.7.0", + "cairo-lang-utils 2.7.0", ] [[package]] @@ -1023,14 +1023,14 @@ dependencies = [ [[package]] name = "cairo-lang-starknet-classes" -version = "2.7.0-rc.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "167f3754129e279fa1759a990bfec1f8b48d8acee9f1d46862ec5d298d3de171" +checksum = "aa17b313f46fcf7ff4de32b86c250eaf584d1e2c8e37ed16db155b221721e735" dependencies = [ - "cairo-lang-casm 2.7.0-rc.0", - "cairo-lang-sierra 2.7.0-rc.0", - "cairo-lang-sierra-to-casm 2.7.0-rc.0", - "cairo-lang-utils 2.7.0-rc.0", + "cairo-lang-casm 2.7.0", + "cairo-lang-sierra 2.7.0", + "cairo-lang-sierra-to-casm 2.7.0", + "cairo-lang-utils 2.7.0", "convert_case", "itertools 0.12.1", "num-bigint", @@ -1132,9 +1132,9 @@ dependencies = [ [[package]] name = "cairo-lang-utils" -version = "2.7.0-rc.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7c6907351815be936e9aad13437604391264067789d4d1e9ef15c099258a08a" +checksum = "8bd5c8c127b9362a12ffb9dede38e792c81b4ded5a98b448baec157b745f47d1" dependencies = [ "hashbrown 0.14.5", "indexmap 2.2.6", @@ -2663,12 +2663,12 @@ checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] name = "universal-sierra-compiler" -version = "2.2.0-rc.1" +version = "2.2.0" dependencies = [ "anyhow", - "cairo-lang-casm 2.7.0-rc.0", - "cairo-lang-sierra 2.7.0-rc.0", - "cairo-lang-sierra-to-casm 2.7.0-rc.0", + "cairo-lang-casm 2.7.0", + "cairo-lang-sierra 2.7.0", + "cairo-lang-sierra-to-casm 2.7.0", "cairo-lang-starknet 1.0.0-alpha.6", "cairo-lang-starknet-classes", "clap", diff --git a/Cargo.toml b/Cargo.toml index 8eed21a..d89b420 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "Universal-Sierra-Compiler is the tool for Sierra compilation. It homepage = "https://github.com/software-mansion/universal-sierra-compiler" readme = "README.md" repository = "https://github.com/software-mansion/universal-sierra-compiler" -version = "2.2.0-rc.1" +version = "2.2.0" edition = "2021" license = "MIT" @@ -12,9 +12,9 @@ license = "MIT" [dependencies] cairo-lang-starknet-sierra-0_1_0 = { package = "cairo-lang-starknet", git = "https://github.com/starkware-libs/cairo.git", tag = "v1.0.0-alpha.6", version = "1.0.0-alpha.6" } cairo-lang-starknet-sierra-1_0_0 = { package = "universal-sierra-compiler-cairo-lang-starknet-proxy", version = "=0.2.0" } -cairo-lang-sierra-to-casm = "2.7.0-rc.0" -cairo-lang-sierra = "2.7.0-rc.0" -cairo-lang-starknet-classes = "2.7.0-rc.0" +cairo-lang-sierra-to-casm = "2.7.0" +cairo-lang-sierra = "2.7.0" +cairo-lang-starknet-classes = "2.7.0" serde_json = "1.0.108" serde = "1.0.193" clap = "4.4.11" @@ -28,4 +28,4 @@ indoc = "2.0.4" fs_extra = "1.3.0" test-case = "3.3.1" num-bigint = "0.4.4" -cairo-lang-casm = { version = "2.7.0-rc.0", features = ["serde"] } +cairo-lang-casm = { version = "2.7.0", features = ["serde"] }