LogoLogo
WebDiscordTelegramBlog
  • Source Protocol
    • Introduction
    • Vision
    • Business Solutions
    • DeFi-as-a-Service
    • Ecosystem Overview
    • JOIN SOURCE
  • SOURCE - $SOURCE
    • Tokenomics
    • Features Part 1
    • Features Part 2
    • Why Guardian Nodes?
    • Source Swap
    • Airdrop
    • Claim Source-Drop
    • How to IBC Transfer
    • Community
  • SourceSwap - On Chain DEX
    • Connect and Deposit
    • Swap
    • Manage Liquidity
  • Governance
    • Before Submitting a Proposal
    • Submitting a Proposal (CLI)
  • COMMAND-LINE INTERFACE (CLI)
    • Introduction
    • Useful CLI Commands
  • SMART CONTRACTS & SOURCED DEVELOPMENT
    • Sourced Local Dev Setup
    • Source Chain Testnet Setup
      • Testnet Links
    • Smart Contracts with COSMWASM
    • CW-20/ERC-20 Tutorial
      • Installation
      • Download, Compile, Store
      • Initialize the Contract
      • Query and run commands
    • CW1 Tutorial
      • Installation
      • Download, Compile, Store
      • Initialize the Contract
      • Query commands
      • Execute commands
  • Nodes & Validators
    • Mainnet: Sourced Installation and Setup
    • Setting up Cosmovisor
    • Mainnet Setup and Tooling
    • Joining Mainnet
    • Mainnet Upgrades
    • Mainnet Resources
    • Block, Height & State-Sync Source with KSYNC
  • PLANQ | SOURCE Bridge
    • Bridging SRCX from BNB Chain to SOURCE Chain
  • SOURCE MARKET DOCUMENTATION
    • Source Market
    • Introduction
    • sTokens
    • Unitroller
    • USX Controller
    • Governance
  • BRANDING & RESOURCES
    • Social, Resources & Updates
    • Branding
    • Videos
    • How to: MetaMask
    • How to: Keplr
  • Gaming
    • Moochkin's Metarun
      • Rewards and Tournaments
  • LEGAL
    • Disclaimer
    • Privacy Policy
Powered by GitBook
On this page
  • Rust
  • Installing Rust in Linux and Mac
  1. SMART CONTRACTS & SOURCED DEVELOPMENT
  2. CW-20/ERC-20 Tutorial

Installation

PreviousCW-20/ERC-20 TutorialNextDownload, Compile, Store

Last updated 2 years ago

Follow the steps to set up a local development chain or connect to the Source Chain Testnet before continuing.

Rust

Assuming you have never worked with rust, you will first need to install some tooling. The standard approach is to use rustup to maintain dependencies and handle updating multiple versions of cargo and rustc, which you will be using.

Installing Rust in Linux and Mac

First, . Once installed, make sure you have the wasm32 target:

rustup default stable
cargo version
# If this is lower than 1.49.0+, update
rustup update stable

rustup target list --installed
rustup target add wasm32-unknown-unknown
install rustup (opens new window)