ChainTools
  • Home
    • Installation Guides
      • Install Cosmovisor
      • Install Hermes Relayer
      • Backup Server
      • Install Golang
      • Install Rust
      • Install Node.js
      • Install Yarn
    • Node Configuration
      • Pruning Cosmos SDK
    • Tooling Guides
      • Node Monitoring
        • Panic Cosmos
      • Systemd Service Template
      • Configure journalctl
      • Caddy Web Server/Proxy
  • Chains
    • General
      • Endpoints
      • Peers & Seeds
      • State-Sync
      • Validator bootstrap commands
    • Mainnets
      • BitSong
      • Comdex
      • Decentr
      • Evmos
      • Juno
      • Kujira
        • IBC
      • KiChain
      • Nois
      • Omniflix
      • Rizon
    • Testnets
      • Omniflix
      • Juno
      • Comdex
  • Snippets
    • Python gRPC
    • Handy commands
  • Workspace
    • Drafts
      • Dyson Protocol Node Deployment with Podman
Powered by GitBook
On this page
  • Update Rust
  • Install wasm-pack
  1. Home
  2. Installation Guides

Install Rust

PreviousInstall GolangNextInstall Node.js

Last updated 2 years ago

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Environment

Once Rust is installed environment has to be modified, so binaries can be found.

source $HOME/.cargo/env

Content of $HOME/.cargo/env looks like:

#!/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

Update Rust

rustup update nightly && rustup update stable
rustup target add wasm32-unknown-unknown --toolchain nightly

Install wasm-pack

curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
Video demonstrates steps described below.