Skip to content

Prepare for release 2.1.0 #2098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
with:
components: rustfmt, clippy
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cairo_1_programs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
- name: Set up Cargo cache
uses: Swatinem/rust-cache@v2
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fresh_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0

- name: Install Pyenv
uses: "gabrielfalcao/pyenv-action@v13"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hint_accountant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
- name: Set up Cargo cache
uses: Swatinem/rust-cache@v2
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hyper_threading_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sudo apt-get install -y hyperfine

- name: Install Rust
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
with:
components: rustfmt, clippy

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hyperfine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:

- name: Install Rust
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0

- name: Checkout
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iai_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
- name: Python3 Build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/iai_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Install Rust
if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }}
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
- name: Set up cargo cache
if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }}
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
- name: Python3 Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
- name: Publish crate cairo-vm
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
with:
components: rustfmt, clippy
- name: Set up cargo cache
Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
with:
targets: wasm32-unknown-unknown

Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
with:
targets: wasm32-unknown-unknown

Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
with:
targets: wasm32-unknown-unknown

Expand Down Expand Up @@ -327,7 +327,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
with:
components: llvm-tools-preview
- name: Set up cargo cache
Expand Down Expand Up @@ -393,7 +393,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@1.85.0
uses: dtolnay/rust-toolchain@1.86.0
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
- name: Checkout
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#### Upcoming Changes

#### [2.1.0] - 2025-05-21

* chore: bump pip `cairo-lang` 0.13.5 [#1959](https://github.com/lambdaclass/cairo-vm/pull/1959)

* fix: Use Cairo prime instead of SECP_P in WRITE_DIVMOD_SEGMENT hint [#2078](https://github.com/lambdaclass/cairo-vm/pull/2078)
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ exclude = ["ensure-no_std"]
resolver = "2"

[workspace.package]
version = "2.0.1"
version = "2.1.0"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/lambdaclass/cairo-vm/"
readme = "README.md"
keywords = ["starknet", "cairo", "vm", "wasm", "no_std"]

[workspace.dependencies]
cairo-vm = { path = "./vm", version = "2.0.1", default-features = false }
cairo-vm-tracer = { path = "./cairo-vm-tracer", version = "2.0.1", default-features = false }
cairo-vm = { path = "./vm", version = "2.1.0", default-features = false }
cairo-vm-tracer = { path = "./cairo-vm-tracer", version = "2.1.0", default-features = false }
mimalloc = { version = "0.1.37", default-features = false }
num-bigint = { version = "0.4", default-features = false, features = [
"serde",
Expand Down
2 changes: 1 addition & 1 deletion cairo-vm-tracer/src/tracer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
.map(|x| {
field_element_repr(
&x.to_bigint(),
&BigInt::parse_bytes(PRIME_STR[2..].as_bytes(), 16).unwrap(),
&BigInt::parse_bytes(&PRIME_STR.as_bytes()[2..], 16).unwrap(),

Check warning on line 74 in cairo-vm-tracer/src/tracer.rs

View check run for this annotation

Codecov / codecov/patch

cairo-vm-tracer/src/tracer.rs#L74

Added line #L74 was not covered by tests
)
})
.enumerate()
Expand Down
2 changes: 1 addition & 1 deletion cairo-vm-tracer/src/tracer_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
return Err(TraceDataError::InstructionIsNone(pc.to_string()));
}
let instruction_encoding = memory[pc].unwrap();
let prime = BigUint::parse_bytes(prime[2..].as_bytes(), 16).unwrap();
let prime = BigUint::parse_bytes(&prime.as_bytes()[2..], 16).unwrap();

Check warning on line 214 in cairo-vm-tracer/src/tracer_data.rs

View check run for this annotation

Codecov / codecov/patch

cairo-vm-tracer/src/tracer_data.rs#L214

Added line #L214 was not covered by tests

let imm_addr = BigUint::from(pc + 1) % prime;
let imm_addr = usize::try_from(imm_addr.clone())
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.85.0"
channel = "1.86.0"
components = ["rustfmt", "clippy"]
profile = "minimal"
Loading