Add Rust Toolchain File (#59335)

* Add rust toolchain file

* Determine rust version by checking the top level toolchain file. Remove overrides.

* Remove explicit overrides and target installation from workflows.

* Remove from macOS build docs any language about installing specific rust toolchains or setting overrides. We're relying on the toolchain file and rustup to quietly install and use the toolchain(s) specified by the toolchain file.

* Always re-install wasm-bindgen if the currently installed version is out-of-date

* e submodule invokes the 'rustup-set-version' target, but it is not needed now that we have the toolchain file. Leave this target in for now so that we don't break the build. We can clean it up later.

* Remove target that install wasm toolchain. It is no longer necessary.

* Fix awk expression that extracts rust version from the toolchain file.

* Fix comment and remove explicit rust toolchain install from lint workflow

* We still need to ensure that rustfmt and clippy are installed on machine that runs rust lint.
This commit is contained in:
rhammonds-teleport
2025-09-26 16:36:48 +00:00
committed by GitHub
parent 33bd287bea
commit f09d381132
7 changed files with 24 additions and 62 deletions
-2
View File
@@ -8,8 +8,6 @@ GOLANGCI_LINT_VERSION ?= v2.4.0
# NOTE: Remember to update engines.node in package.json to match the major version.
NODE_VERSION ?= 22.14.0
# Run lint-rust check locally before merging code after you bump this.
RUST_VERSION ?= 1.81.0
WASM_OPT_VERSION ?= 0.116.1
LIBBPF_VERSION ?= 1.2.2
LIBPCSCLITE_VERSION ?= 1.9.9-teleport