From 5785c8d71da7882abf04748bf1dc61974638a922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Thei=C3=9Fen?= Date: Wed, 21 Oct 2020 23:07:46 +0200 Subject: [PATCH] Remove rust-toolchain file (#99) Architecture specific toolchains are not allowed in this file. We can assume that stable is the default toolchain and should not dictate with which toolchain the user builds the client. Also this breaks under macOS. We are only interested with which toolchain the runtime is build. For this we should set the WASM_BUILD_TOOLCHAIN variable. --- README.md | 2 +- docker-compose.yml | 1 + rust-toolchain | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 rust-toolchain diff --git a/README.md b/README.md index 30fae11..0586088 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Once the development environment is set up, build the node template. This comman [native](https://substrate.dev/docs/en/knowledgebase/advanced/executor#native-execution) code: ```bash -cargo build --release +WASM_BUILD_TOOLCHAIN=nightly-2020-10-05 cargo build --release ``` ## Run diff --git a/docker-compose.yml b/docker-compose.yml index bc1922f..f7f4903 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,7 @@ services: - "9944:9944" environment: - CARGO_HOME=/var/www/node-template/.cargo + - WASM_BUILD_TOOLCHAIN=nightly-2020-10-05 volumes: - .:/var/www/node-template - type: bind diff --git a/rust-toolchain b/rust-toolchain deleted file mode 100644 index 65f2e79..0000000 --- a/rust-toolchain +++ /dev/null @@ -1,2 +0,0 @@ -stable-x86_64-unknown-linux-gnu -nightly-2020-10-05