Skip to content

Commit 13362dc

Browse files
chore: update openvm build nightly version (#2152)
For guest programs with MSRV 1.87+, it is convenient for `cargo openvm build` to use a newer Rust toolchain. We chose `2025-08-02` since that is when the last stable Rust 1.90.0 branched from master: https://releases.rs/docs/1.90.0/ Note that users can always override the toolchain version with env var `OPENVM_RUST_TOOLCHAIN`. workflow run: https://github.com/axiom-crypto/openvm-reth-benchmark/actions/runs/18085897389/job/51456939479
1 parent 11cedc2 commit 13362dc

File tree

10 files changed

+16
-14
lines changed

10 files changed

+16
-14
lines changed

.github/workflows/extension-tests.cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
# Run integration tests
123123
if [ -d "extensions/$ext/tests" ]; then
124124
pushd extensions/$ext/tests
125-
rustup component add rust-src --toolchain nightly-2025-02-14
125+
rustup component add rust-src --toolchain nightly-2025-08-02
126126
${{ env.NEXTEST_ENV }} cargo nextest run ${{ env.FEATURE_ARGS }} --profile=heavy --no-tests=pass
127127
popd
128128
fi

.github/workflows/extension-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ jobs:
9292
if: hashFiles(format('extensions/{0}/tests', matrix.extension.path)) != ''
9393
working-directory: extensions/${{ matrix.extension.path }}/tests
9494
run: |
95-
rustup component add rust-src --toolchain nightly-2025-02-14
95+
rustup component add rust-src --toolchain nightly-2025-08-02
9696
cargo nextest run --cargo-profile=fast --profile=heavy --no-tests=pass

.github/workflows/guest-lib-tests.cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
FILTER_OUTPUTS: ${{ toJSON(steps.filter.outputs) }}
124124
run: |
125125
COMMON_CHANGED=$(echo $FILTER_OUTPUTS | jq -r .common)
126-
rustup component add rust-src --toolchain nightly-2025-02-14
126+
rustup component add rust-src --toolchain nightly-2025-08-02
127127
128128
for crate in ${{ matrix.crates.names }}; do
129129
crate_changed=$(echo $FILTER_OUTPUTS | jq -r .$crate)

.github/workflows/guest-lib-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- name: Run ${{ matrix.crate.name }} guest library tests
7575
working-directory: guest-libs/${{ matrix.crate.path }}
7676
run: |
77-
rustup component add rust-src --toolchain nightly-2025-02-14
77+
rustup component add rust-src --toolchain nightly-2025-08-02
7878
PAIRING_FEATURE_ARGS=""
7979
if [[ "${{ matrix.crate.name }}" == "pairing" ]]; then
8080
PAIRING_FEATURE_ARGS="--features=bn254,bls12_381"

.github/workflows/riscv.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Run RISC-V test vector tests
8181
working-directory: crates/toolchain/tests
8282
run: |
83-
rustup component add rust-src --toolchain nightly-2025-02-14
83+
rustup component add rust-src --toolchain nightly-2025-08-02
8484
if [[ ${{ matrix.platform.runner }} == *"gpu"* ]]; then
8585
TEST_NAME=test_rv32im_riscv_vector_prove
8686
else

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ All notable changes to OpenVM will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project follows a versioning principles documented in [VERSIONING.md](./VERSIONING.md).
77

8-
## Unreleased
8+
## v1.4.1 (Unreleased)
99

1010
### Changed
11+
- (Toolchain) Update `cargo openvm build` to use Rust nightly version `nightly-2025-08-02`.
12+
- (Primitives Library) Fix in `openvm-algebra-complex-macros` to ensure `const` byte arrays have proper memory alignment.
1113
- (Executor) Modified `VirtualMachine::build_metered_ctx` to take the program (`&VmExe<Val<E::SC>>`) as an argument.
1214

1315
## v1.4.0 (2025-09-01)

ci/scripts/utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ install_s5cmd() {
104104
arch=$(uname -m)
105105
case $arch in
106106
arm64|aarch64)
107-
rustup component add rust-src --toolchain nightly-2025-02-14-aarch64-unknown-linux-gnu
107+
rustup component add rust-src --toolchain nightly-2025-08-02-aarch64-unknown-linux-gnu
108108
S5CMD_BIN="s5cmd_2.2.2_linux_arm64.deb"
109109
;;
110110
x86_64|amd64)
111-
rustup component add rust-src --toolchain nightly-2025-02-14-x86_64-unknown-linux-gnu
111+
rustup component add rust-src --toolchain nightly-2025-08-02-x86_64-unknown-linux-gnu
112112
S5CMD_BIN="s5cmd_2.2.2_linux_amd64.deb"
113113
;;
114114
*)

crates/toolchain/build/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ mod config;
2222
/// The rustc compiler [target](https://doc.rust-lang.org/rustc/targets/index.html).
2323
pub const RUSTC_TARGET: &str = "riscv32im-risc0-zkvm-elf";
2424
/// The default Rust toolchain name to use if OPENVM_RUST_TOOLCHAIN is not set
25-
pub const DEFAULT_RUSTUP_TOOLCHAIN_NAME: &str = "nightly-2025-02-14";
25+
pub const DEFAULT_RUSTUP_TOOLCHAIN_NAME: &str = "nightly-2025-08-02";
2626

2727
/// Get the Rust toolchain name from environment variable or default
2828
pub fn get_rustup_toolchain_name() -> String {

docs/vocs/docs/pages/book/getting-started/install.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
2020
. "$HOME/.cargo/env"
2121

2222
# install nightly Rust toolchain for binary builds
23-
rustup install nightly-2025-02-14
24-
rustup component add rust-src --toolchain nightly-2025-02-14
23+
rustup install nightly-2025-08-02
24+
rustup component add rust-src --toolchain nightly-2025-08-02
2525

2626
# install build tools for Ubuntu
2727
sudo apt update
@@ -42,8 +42,8 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
4242
. "$HOME/.cargo/env"
4343

4444
# install nightly Rust toolchain for binary builds
45-
rustup install nightly-2025-02-14
46-
rustup component add rust-src --toolchain nightly-2025-02-14
45+
rustup install nightly-2025-08-02
46+
rustup component add rust-src --toolchain nightly-2025-08-02
4747

4848
# install build tools for macOS
4949
xcode-select --install

docs/vocs/docs/pages/specs/reference/rust-frontend.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The OpenVM Rust frontend supports the following host and guest target and toolch
1717

1818
- **Host**: We support `aarch64-apple-darwin` and `x86_64-unknown-linux-gnu` with Rust 1.86.0: `rustc 1.86.0 (05f9846f8 2025-03-31)`.
1919
For reproducible builds, we recommend using the `x86_64-unknown-linux-gnu` platform.
20-
- **Guest**: `riscv32im-risc0-zkvm-elf` with Rust `nightly-2025-02-14`: `rustc 1.86.0-nightly (a567209da 2025-02-13)`.
20+
- **Guest**: `riscv32im-risc0-zkvm-elf` with Rust `nightly-2025-08-02`: `rustc 1.90.0-nightly (4b55fe199 2025-08-01)`.
2121

2222
The `riscv32im-risc0-zkvm-elf` guest target incorporates special support for
2323
zkVMs and has official support by the

0 commit comments

Comments
 (0)