Getting Started
In this section we will set up a development environment for building smart contracts.
Installation
Ensure that the rust installer is available.
plain textcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Ensure the stable toolchain is the default.
plain textrustup default stable
Add the
wasm32
target.plain textrustup target add wasm32-unknown-unknown
Install the
cargo-generate
crate.plain textcargo install cargo-generate --features vendored-openssl
Updates
Every so often, the Rust toolchain should be updated
plain text# check for updates rustup check # update rustup update stable
Setting up an IDE
An IDE is recommended to help learn syntax, especially when just starting out with Rust.
There are two recommended editors for smart contract development.
Visual Studio Code
Intellij IDEA
Neither is better or worse than the other. Choose based on personal preference.
Up Next
To generate a smart contract project using a template, proceed to the Project section.