Skip to content

Commit 2e23096

Browse files
committed
chore: output versions of Rust tools on CI
New mise command: `mise rust:version` It is run during CI and can also be invoked locally. It will output something like this: ``` $ mise run rust:version [rust:version] $ echo "rustc --version = " $(rustc --version) rustc --version = rustc 1.86.0 (05f9846f8 2025-03-31) cargo --version = cargo 1.86.0 (adf9b6ad1 2025-02-28) cargo fmt --version = rustfmt 1.8.0-stable (05f9846f89 2025-03-31) cargo clippy --version = clippy 0.1.86 (05f9846f89 2025-03-31) ``` Very handy to verify that your local toolchain is the same as CI when rustfmt is failing the build but is fine locally.
1 parent e909fb4 commit 2e23096

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

mise.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ run = "docker compose rm --stop --force proxy proxy-tls"
108108
alias = ['t', 'ci']
109109
description = "Runs all tests (hygiene, unit, integration)"
110110
run = """
111+
mise run rust:version
111112
mise run test:check
112113
mise run test:format
113114
mise run test:clippy
@@ -369,6 +370,15 @@ mise --env tls run proxy:down
369370
description = "Runs cargo nextest, skipping integration tests"
370371
run = 'cargo nextest run --no-fail-fast --nocapture -E "not package(cipherstash-proxy-integration)" {{arg(name="test",default="")}}'
371372

373+
[tasks."rust:version"]
374+
description = "Outputs rust toolchain version info"
375+
run = """
376+
echo "rustc --version = " $(rustc --version)
377+
echo "cargo --version = " $(cargo --version)
378+
echo "cargo fmt --version = " $(cargo fmt --version)
379+
echo "cargo clippy --version = " $(cargo clippy --version)
380+
"""
381+
372382
[tasks."test:format"]
373383
description = "Runs cargo fmt"
374384
run = 'cargo fmt --all -- --check'

0 commit comments

Comments
 (0)