Actions
Task #8381
openrust: auto-detect suitable rust version in ./configure
Effort:
Difficulty:
Label:
Description
On Ubuntu 22.04 and 24.04, rustc is 1.75.0. However, more versions, like 1.89.0 are available, but get installed as cargo-1.89, rustc-1.89, etc.
This is currently supported with environment variables, for example:
RUSTC=rustc-1.89 CARGO=cargo-1.89 ./configure
But what I'm wondering is if ./configure should be smarter. If the default rustc is too old, should we check for newer versions?
Updated by Jason Ish 1 day ago
- Related to Task #7745: rust: set new minimum Rust version for Suricata 9.0 added
Updated by Jason Ish 1 day ago
- Related to Task #8382: rust: update minimum rust version to 1.85 added
Updated by Victor Julien 1 day ago
I think this is a bit of a anti-pattern for configure/autotools. Perhaps we can add a detection to our rust check that says something like:
"On Ubuntu install rustc-1.89 `apt install rustc-1.89` and rerun configure with `RUSTC=rustc-1.89 ./configure ...`"
Actions