Cairo 🐺 is a blazing fast compiler for the Cairo language, written in 🦀 Rust 🦀. It provides a powerful toolset for creating provable programs for general computation, leveraging the speed and safety of Rust.
Cairo is the first Turing-complete language for creating provable programs. It is designed to support general computation in a verifiable manner.
To get started with Cairo, you need to install Rust. Set up Rust with the following commands:
Ensure Rust was installed correctly by running the following command from the root project directory:
For more information and examples, refer to the examples directory in the project repository.
Or specify the contract path if multiple contracts are defined in the same project:
To develop with Cairo, install the language server by following the instructions provided in vscode-cairo.
If you wish to support the development of Cairo, consider the following:
Cairo follows good security practices, but 100% security cannot be assured. Cairo is provided "as is" without any warranty. Use at your own risk. For more information and to report security issues, please refer to our security documentation.