Cargo: align rust toolchain version with internal repository

Also:
* remove new warnings raised by the rust toolchain
* run new formatting and linting
* update the rust toolchain used by `cargo`

While we keep `bazel` builds using the same toolchain as internally
(now a nightly one), I opted for using a stable toolchain for `cargo`.
The nightly toolchain is only required internally for build reasons, we
should keep not using any unstable rust features in our sources.
This commit is contained in:
Paolo Tranquilli
2025-08-11 16:45:47 +02:00
parent 6e38087d20
commit 45c0c46c9d
10 changed files with 55 additions and 53 deletions

View File

@@ -1,8 +1,10 @@
# This file specifies the Rust version used to develop and test the
# extractors written in rust. It is set to the lowest version of Rust
# we want to support.
# This file specifies the Rust version used to develop the extractors written
# in rust. Notice that this is just used by using `cargo`-related tools in a
# local dev environment. The actual version used to build the released packs
# is specified in `MODULE.bazel` in the internal repository (typically
# reflected by `MODULE.bazel` in this repository).
[toolchain]
channel = "1.86"
channel = "1.88"
profile = "minimal"
components = [ "clippy", "rustfmt" ]