Skip to content

Commit

Permalink
feat: update Rust ecosystem to v1.84.0 (#700)
Browse files Browse the repository at this point in the history
* deps(cpp, rust): update git to 1:2.43.0-1ubuntu7.2

* deps: update Rust tooling

Update Rust to v1.84.0
Update cargo-binstal to v1.10.22
Update cargo-mutants to v25.0.0
Update flip-link to v0.1.10
Update probe-rs-tools to v0.26.0

* chore: test cargo-binstall for probe-rs-tools

* chore: debug probe-rs-tools install failure

* chore: try to form correct pkg-url for probe-rs aarch64

* chore: try different strategy

* chore: fix typo in cargo-binstall arguments

* chore: retest

* chore: revert and split off to separate PR

* chore: make coverage test robust against changing toolchain versions
  • Loading branch information
rjaegers authored Jan 22, 2025
1 parent 920b61f commit 9359bac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .devcontainer/rust/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM ubuntu:24.04@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab

ARG BATS_VERSION=1.11.0
ARG CARGO_BINSTALL_VERSION=1.10.8
ARG RUST_VERSION=1.81.0
ARG CARGO_BINSTALL_VERSION=1.10.22
ARG RUST_VERSION=1.84.0

ARG DEBIAN_FRONTEND=noninteractive

Expand Down Expand Up @@ -47,6 +47,6 @@ RUN update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-14 20 \
ENV BINSTALL_DISABLE_TELEMETRY=true
# Install additional rust tools
RUN wget -qO - "https://github.com/cargo-bins/cargo-binstall/releases/download/v${CARGO_BINSTALL_VERSION}/cargo-binstall-$(uname -m)-unknown-linux-gnu.tgz" | tar xz -C "/usr/bin" \
&& cargo-binstall -y --locked [email protected] cargo-mutants@24.9.0 [email protected].9 \
&& cargo-binstall -y --locked [email protected] cargo-mutants@25.0.0 [email protected].10 \
# cargo-binstall can't (yet) install probe-rs-tools for aarch64, fall-back to script installation
&& wget -qO - https://github.com/probe-rs/probe-rs/releases/download/v0.24.0/probe-rs-tools-installer.sh | sh
&& wget -qO - https://github.com/probe-rs/probe-rs/releases/download/v0.26.0/probe-rs-tools-installer.sh | sh
2 changes: 1 addition & 1 deletion test/rust/integration-tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ EOF

cargo profdata -- merge -sparse default_*.profraw -o default.profdata

run cargo cov -- report --instr-profile=default.profdata --object target/debug/deps/test-79ff237e4a2ee06d
run cargo cov -- report --instr-profile=default.profdata --object $(find target/debug/deps -name "test-*" -executable)
assert_success
assert_output --partial "77.78%"

Expand Down

0 comments on commit 9359bac

Please sign in to comment.