From b330ff25a38a672e6753ff53f9592440f6b3fbb2 Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Wed, 22 Mar 2023 20:20:36 +0100 Subject: [PATCH] Add rust toolchain file to specify the rust version used on CI. (#3598) --- rust-toolchain | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 rust-toolchain diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000000..ae1e42e530 --- /dev/null +++ b/rust-toolchain @@ -0,0 +1,10 @@ +# If you see this, run "rustup self update" to get rustup 1.23 or newer. + +# NOTE: above comment is for older `rustup` (before TOML support was added), +# which will treat the first line as the toolchain name, and therefore show it +# to the user in the error, instead of "error: invalid channel name '[toolchain]'". + +[toolchain] +channel = "1.64" +components = ["rustfmt", "clippy"] +targets = ["wasm32-unknown-unknown"]