Module 2 - Basics Installations
Why Rust & CosmWasm?
The Router Chain is built using the Cosmos SDK and encapsulates all the features of Cosmos, including fast Block Times, Robust Security Mechanisms, and, most importantly, CosmWasm - a Security-first Smart Contract Platform.
For interacting with CosmWasm & Writing Smart Contracts, one needs to have a Basic Understanding of Rust.
Installations
Windows
For Smooth Experience of Installation in Windows it is better if you have wsl
Installed. Run the Below Command, if you don’t have it -
-
Now, Click here to Install Rust via Terminal or
exe
file. It will Install Rustup, later on also Cargo, which is Rust’s Package Manager. -
Now, We’ll be Installing CosmWasm by Directly Running the Below Commands -
- Lastly, We’ll be needing 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.
macOS
-
Click here to Install Rust. It will Install Rustup, later on also Download Cargo, which is Rust’s Package Manager.
-
Now, We’ll be Installing CosmWasm by Directly Running the Below Commands -
- Lastly, We’ll be needing Docker to Optimize the Production Code and make the Binary Size of Compiled CosmWasm Contracts as Small as Possible, we use Rust-Optimizer, which uses Docker to work. To Install it, first Install HomeBrew and then Run -
Linux
-
Click here to Install Rust. It will Install Rustup, later on also Download Cargo, which is Rust’s Package Manager.
-
Now, We’ll be Installing CosmWasm by Directly Running the Below Commands -
- Lastly, We’ll be needing Docker to Optimize the Production Code and make the Binary Size of Compiled CosmWasm Contracts as Small as Possible, we use Rust-Optimizer, which uses Docker to work. To Install it, first Install HomeBrew and then Run -