Skip to content

Updates rust version to 1.94#1527

Open
simongdavies wants to merge 7 commits into
hyperlight-dev:mainfrom
simongdavies:update-rust-version
Open

Updates rust version to 1.94#1527
simongdavies wants to merge 7 commits into
hyperlight-dev:mainfrom
simongdavies:update-rust-version

Conversation

@simongdavies

@simongdavies simongdavies commented Jun 11, 2026

Copy link
Copy Markdown
Member

Updates rust version to 1.94 , MSRV remains at 1.89.

Latest rust version is 1.96 but this requires a change to cargo-hyperlight. I will open a PR for that shortly along with a PR to update the common-workflow and dev-images

Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 11, 2026 14:42
@simongdavies simongdavies added the kind/dependencies For PRs that update dependencies or related components label Jun 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates the repository’s Rust toolchain/MSRV and aligns CI/dev tooling with the new version, plus a couple of small Rust/clippy cleanups.

Changes:

  • Bump Rust toolchain from 1.89 to 1.94 across rust-toolchain.toml, GitHub Actions workflows, and devcontainer config
  • Update Nix flake pinned stable toolchain snapshot (date/sha256)
  • Minor Rust code style/lint adjustments (clippy allowances, is_multiple_of)

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/hyperlight_guest_tracing/src/invariant_tsc.rs Adds clippy/MSRV-related comment + #[allow(unused_unsafe)] around __cpuid usage
src/hyperlight_common/src/virtq/ring.rs Replaces odd-wrap check with is_multiple_of(2)
src/hyperlight_common/src/virtq/mod.rs Adds clippy allow for panic in const layout verification
rust-toolchain.toml Bumps pinned toolchain channel to 1.94
flake.nix Updates stable toolchain snapshot date and sha256
.github/workflows/dep_update_guest_locks.yml Updates CI rust-toolchain to 1.94
.github/workflows/dep_run_examples.yml Updates CI rust-toolchain to 1.94
.github/workflows/dep_fuzzing.yml Updates CI rust-toolchain to 1.94
.github/workflows/dep_code_checks.yml Updates CI rust-toolchain to 1.94
.github/workflows/dep_build_test.yml Updates CI rust-toolchain to 1.94
.github/workflows/dep_build_guests.yml Updates CI rust-toolchain to 1.94
.github/workflows/dep_benchmarks.yml Updates CI rust-toolchain to 1.94
.github/workflows/copilot-setup-steps.yml Updates CI rust-toolchain to 1.94
.github/workflows/RustNightly.yml Updates CI rust-toolchain to 1.94
.github/workflows/PrimeCaches.yml Updates CI rust-toolchain to 1.94
.github/workflows/CreateRelease.yml Updates CI rust-toolchain to 1.94
.github/workflows/CreateDevcontainerImage.yml Updates default toolchain env to 1.94
.github/workflows/Coverage.yml Updates CI rust-toolchain to 1.94
.github/workflows/CargoPublish.yml Updates CI rust-toolchain to 1.94
.github/workflows/CargoAudit.yml Updates audit toolchain to 1.94
.devcontainer/Dockerfile Updates devcontainer Rust toolchain arg to 1.94

Comment thread src/hyperlight_guest_tracing/src/invariant_tsc.rs
Comment thread flake.nix
On Rust 1.94+, function-to-integer casts require an intermediate pointer cast.
Cast via 'as *const () as usize' to comply with the function_casts_as_integer lint
while maintaining compatibility with Rust 1.89.

Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
- Remove src/hyperlight_guest_bin/third_party/picolibc from index (accidentally committed as nested git repo, breaking submodule init in CI)
- Pin cargo-hyperlight to v0.1.11 in Justfile (latest stable, validated with Rust 1.94+)
- Update CI workflows (RustNightly.yml, CreateRelease.yml) to use 'just ensure-cargo-hyperlight' recipe instead of inline install commands (single source of truth)
- Fix simpleguest rustfmt formatting per nightly-2026-02-27

Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
Comment thread Justfile
Comment on lines 50 to +54
ensure-cargo-hyperlight:
cargo install --locked cargo-hyperlight
# Force reinstall so self-hosted runners don't keep a preinstalled binary with the same semver.
cargo install --locked --version 0.1.11 --force cargo-hyperlight
cargo hyperlight --version
{{ if os() == "windows" { "Get-Command cargo-hyperlight" } else { "command -v cargo-hyperlight" } }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ran as part of just guest, which will now reinstall cargo-hyperlight evertime which seems wrong

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont know what went wrong with the runners but this was the fix, I'll look at it some more

Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/dependencies For PRs that update dependencies or related components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants