Development Workstation
Windows Subsystem for Linux (WSL) version 2
Setting up WSL under windows:
How to install Linux on Windows with WSL (opens in a new tab)
If the Linux operating system is used, this step can be ignored.
Rust toolchain
Install the required compiler and tools for building Substrate-based blockchains.
Official Substrate Docs: Install (opens in a new tab)
From the official documentation all steps have to be done until the step of compiling the Template Substrate node, this step is not necessary.
Install the required tools for building ink! smart contracts.
Official ink! Docs: ink! CLI (opens in a new tab)
Install just the ink! CLI (cargo-contract).
If you have some troubles check:
...
. "$HOME/.cargo/env"
and
#!/bin/sh
# rustup shell setup
# affix colons on either side of $PATH to simplify matching
case ":${PATH}:" in
*:"$HOME/.cargo/bin":*)
;;
*)
# Prepending path in case a system-installed rustc needs to be overridden
export PATH="$HOME/.cargo/bin:$PATH"
;;
esac
or purge rust environment if necessary
# .cargo clean
$ rm -rf ~/.cargo/git/* & rm -rf ~/.cargo/registry/* & rm ~/.cargo/registry/.package-*
# .rustup clean
$ rm -rf ~/.rustup/toolchains/* & rm -rf ~/.rustup/update-hashes/*
Development environment note
When compiling or building something in the WSL it is important that it happens within the WSL file system and not on a disk like c:/, d:/, e:/ etc.