stylusguide
  • 1. Welcome to Arbitrum Stylus and Rust
    • Brief Introduction to Arbitrum Stylus
    • Importance of Rust in Blockchain Development
    • What You'll Learn in This Tutorial Series
  • 2. Setting Up Your Development Environment
    • Installing Rust
    • Setting Up Arbitrum Stylus
    • Basic Commands
  • 3. Your First Smart Contract: Hello World
    • Introduction to Smart Contracts
    • Writing the Hello World Contract
    • Deploying and Testing Your Contract
  • 4. Understanding Smart Contract Storage: Simple Storage
    • Basics of Contract Storage
    • Writing the Simple Storage Contract
    • Interacting with Storage Variables
  • 5. Creating Your Own Token: Token Contract
    • Introduction to Tokens and Standards
    • Writing the Token Contract
    • Deploying and Testing Your Token
  • 6. Additional Resources and Next Steps
Powered by GitBook
On this page
  1. 2. Setting Up Your Development Environment

Installing Rust

Installing Rust

To install Rust on your system, follow these steps:

  1. Visit the Rust Website:

    • Go to the official Rust website: rust-lang.org.

  2. Get Started:

    • Click on the "Get Started" button to access the installation page.

  3. Install Rust:

    • Follow the instructions to install Rust using rustup, the Rust installer and version management tool.

    • For most systems, you can install Rust by running the following command in your terminal:

      curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  4. Follow On-Screen Instructions:

    • The script will guide you through the installation process.

    • Choose the default installation option unless you have specific requirements.

  5. Configure Your Environment:

    • After the installation is complete, configure your system's PATH variable. The installer usually does this automatically, but you can verify it by running:

      source $HOME/.cargo/env
  6. Verify the Installation:

    • Ensure that Rust is installed correctly by checking the version:

      rustc --version
    • You should see output similar to this:

      rustc 1.55.0 (c8dfcfe04 2021-09-06)
Previous2. Setting Up Your Development EnvironmentNextSetting Up Arbitrum Stylus

Last updated 10 months ago