Skip to main content

3: Developer environment

Beginner
Rust

Setting up your environment

Before you start your project, verify the following:

  • You have an internet connection and access to a shell terminal on your local macOS or Linux computer.

  • You have a command line interface (CLI) window open. This window is also referred to as the 'terminal' window.

  • You have installed npm.

  • You have downloaded and installed the Rust programming language and Cargo as described in the Rust installation instructions for your operating system.

    curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
  • You have installed the wasm32-unknown-unknown target:

    rustup target add wasm32-unknown-unknown
  • You have downloaded and installed the IC SDK package as described in the installing the IC SDK page.

    The IC SDK setup guide provides tools, sample code, and documentation to help you create Rust smart contracts and dapps to run on the Internet Computer mainnet. The setup guide assumes that you are installing the IC SDK for the first time.

    To support Rust development, the IC SDK includes the Rust canister development kit (Rust CDK).

    While using the IC SDK is the typical path for most developers, experienced Rust developers may choose to circumvent IC SDK entirely and use the Rust CDK directly.

  • You have a code editor installed. The VS Code IDE is a popular choice for Rust.

  • You have downloaded and installed git.

  • Assure that all packages and tools above are updated to the latest release versions.

Next steps

After following the steps above, you're ready to get started developing backend canisters with Rust! To get started, check out the Rust quick start guide.