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 BIG SDK package as described in the installing the BIG SDK page.

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

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

    While using the BIG SDK is the typical path for most developers, experienced Rust developers may choose to circumvent BIG 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.