Installing Prerequisites
Install Go
If you do not have Go installed in your system, you can set it up by following the three easy steps listed here. The latest versions of routerd
require Go version v1.18+
.
Set up Rust
To work with CosmWasm, you'll need to make sure you have rustup installed along with a recent rustc
and cargo
version installed. Currently, we are testing on 1.58.1+
. We use rustup
to install rust since it makes maintaining dependencies and handling updates much more efficient.
IDE
To develop and test smart contracts using Rust, a good IDE is a must. Currently, VSCode is the best-supported environment for RLS (Rust Language Server). Coupled with the rust-analyzer for the VSCode plugin, it makes use of the rust compiler to type-check all your code on each save.
Docker
To optimize production code and make the binary size of compiled CosmWasm contracts as small as possible, we use rust-optimizer, which uses Docker to work. Download and install Docker Desktop for your system using this link.
Last updated