Install dependencies

  • Install Rust

  • Setup Rust:

rustup override set stable && rustup update

Clone the Cairo repo:

git clone

Ensure Rust was installed correctly by running the following from the root project directory:

cd cairo && cargo test

Development environment setup

To set up a development environment, please follow these steps:

1 . Download and install VSCode.

2 . Follow instructions in vscode-cairo.

The rustfmt configuration used by cairo requires a nightly version of Rust. You can install the nightly version by running.

rustup install nightly-2022-11-03