summaryrefslogtreecommitdiffstats
path: root/rust-toolchain.toml
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-02-17 23:49:01 +0100
committera-kenji <aks.kenji@protonmail.com>2021-02-22 18:16:23 +0100
commit0e10aa882eb8fc9663b8564188cb158903b805c5 (patch)
tree5e76f6c75e43772470552cb7c932682e3ec5904f /rust-toolchain.toml
parentb17dc6625cd644705ad3fe424fa53706dae9a682 (diff)
Add rust-toolchain.toml file
The rust-toolchain file makes it possible to share a basic rustup configuration across the project. https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file Important to note, this is the current rustup hierarchy: 1. An explicit toolchain, e.g. cargo +beta, 2. The RUSTUP_TOOLCHAIN environment variable, 3. A directory override, ala rustup override set beta, 4. The rust-toolchain file, 5. The default toolchain, source: https://github.com/ebroto/rustup/blob/c2db7dac6b38c99538eec472db9d23d18f918409/README.md#toolchain-override-shorthand
Diffstat (limited to 'rust-toolchain.toml')
-rw-r--r--rust-toolchain.toml8
1 files changed, 8 insertions, 0 deletions
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
new file mode 100644
index 000000000..add0516c3
--- /dev/null
+++ b/rust-toolchain.toml
@@ -0,0 +1,8 @@
+# https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file
+[toolchain]
+# can be further pinned eg:
+# date: "stable-2020-07-10"
+# version: "nightly-1.0.0"
+channel = "stable"
+components = [ "rustfmt", "rust-src", "clippy", "rust-analysis"]
+targets = [ "wasm32-wasi" ]