⚑ Blazing ⚑ fast ⚑ compiler for Cairo, written in πŸ¦€ Rust πŸ¦€

Overview

Cairo 1.0 🐺

⚑ Blazing ⚑ fast ⚑ compiler for Cairo, written in πŸ¦€ Rust πŸ¦€

Report a Bug - Request a Feature - Ask a Question

GitHub Workflow Status Project license Pull Requests welcome


Getting Started

Prerequisites

  • Install Rust
  • Setup Rust:
rustup override set stable && rustup update && cargo test

Having installed Rust, go ahead to clone the repo, by running the command below on a terminal:

git clone [email protected]:Darlington02/cairo1.0.git

Compiling and running Cairo files

Compile Cairo Contracts to Sierra:

cargo run --bin cairo-compile -- /path/to/input.cairo /path/to/output.sierra --replace-ids

Compile Starknet Contracts to Sierra:

cargo run --bin starknet-compile -- /path/to/input.cairo /path/to/output.sierra --replace-ids

Compile Cairo-Sierra to casm (Cairo assembly):

cargo run --bin sierra-compile -- /path/to/input.sierra /path/to/output.casm

Compile Starknet-Sierra to casm (Cairo assembly):

cargo run --bin starknet-sierra-compile -- /path/to/input.sierra /path/to/output.casm

Run Cairo code directly:

cargo run --bin cairo-run -- -p /path/to/file.cairo

See more information here. You can also find Cairo examples in the examples directory.

Setting up VSCode for Cairo 1.0 Development

Follow the instructions in vscode-cairo.

You might also like...
🐱 HQ9C is a very serioues compiler for HQ9+, it meta-compiles with Rust.

HQ9+ Compiler HQ9c (Or HQ9+ Compiler) is a blockchain-based NFT minting AI machine-learning cloud infraestructure for the compiling of the great progr

Nederlandse programmeertaal. Geinterpreteerd en met dynamische types. Met bytecode compiler en virtual machine, in Rust.

Nederlang Nederlang is een geinterpreteerde programmeertaal, in het Nederlands! Met als bestandsnaam extensie.... .nl! Het maakt gebruik van dynamisch

Tools - The Rome Toolchain. A linter, compiler, bundler, and more for JavaScript, TypeScript, HTML, Markdown, and CSS.
Tools - The Rome Toolchain. A linter, compiler, bundler, and more for JavaScript, TypeScript, HTML, Markdown, and CSS.

Rome is currently being rewritten in Rust. Read more about it in our latest blog post. The documentation below is out of date and available for poster

Minimal Pandoc compiler - HTML

Minimal Pandoc compiler - HTML

Compiler for an "extended" version of the Mindustry logic language

Minblur Compiler Minblur is a compiler for a superset of "logic" programming language in the game Mindustry. It helps reduce code-duplication, making

An awesome language and its compiler.

Calocom Project Build Build with cargo-make Just run cargo make in the root directory of the project. Or, if you want to build it in release mode, run

Open-source compiler for the Papyrus scripting language of Bethesda games.

Open Papyrus Compiler This project is still WORK IN PROGRESS. If you have any feature requests, head over to the Issues tab and describe your needs. Y

The JavaScript Oxidation Compiler - Linter / Prettier

The JavaScript Oxidation Compiler (oxc) Why this project? The goal of this project is to: Create a blazingly fast JavaScript Compiler written in Rust.

The zkEVM Vyper compiler.

zkSync Era: Vyper Compiler zkSync Era is a layer 2 rollup that uses zero-knowledge proofs to scale Ethereum without compromising on security or decent

Owner
Darlington Nnam
Engineering Blockchains || Building whats next
Darlington Nnam
⚑ Blazing fast async/await HTTP client for Python written on Rust using reqwests

Reqsnaked Reqsnaked is a blazing fast async/await HTTP client for Python written on Rust using reqwests. Works 15% faster than aiohttp on average RAII

Yan Kurbatov 8 Mar 2, 2023
A blazing fast and easy to use TRPC-like server for Rust.

rspc ?? Work in progress ?? A blazing fast and easy to use TRPC-like server for Rust. Website Example You define a trpc router and attach resolvers to

Oscar Beaumont 344 Dec 31, 2022
zoxide is a blazing fast replacement for your cd command

zoxide A smarter cd command for your terminal zoxide is a blazing fast replacement for your cd command, inspired by z and z.lua. It keeps track of the

Ajeet D'Souza 8.7k Dec 31, 2022
⚑️ A blazing fast way of maintaining powerful notes with connections between them.

Zettl ⚑️ A blazing fast way of maintaining powerful notes with connections between them. Installing Zettl To install Zettl, you will need the Rust too

Tirth Jain 26 Dec 2, 2022
β˜„πŸŒŒοΈ The minimal, blazing-fast, and infinitely customizable prompt for any shell

β˜„??️ The minimal, blazing-fast, and infinitely customizable prompt for any shell

Starship Command 31.6k Dec 30, 2022
⚑ A Blazing fast alternative to the stock windows folder delete function!

Turbo Delete A blazing fast alternative to the default Windows delete. Turbodelete is a blazing fast alternative to the default Windows delete functio

Tejas Ravishankar 165 Dec 4, 2022
Minimal and blazing-fast file server. For real, this time.

Zy Minimal and blazing-fast file server. For real, this time. Features Single Page Application support Partial responses (Range support) Cross-Origin

Miraculous Owonubi 17 Dec 18, 2022
Starkli (/ˈstɑːrklaΙͺ/), a ⚑ blazing ⚑ fast ⚑ CLI tool for StarkNet powered by πŸ¦€ starknet-rs πŸ¦€

starkli Starkli (/ˈstɑːrklaΙͺ/), a ⚑ blazing ⚑ fast ⚑ CLI tool for StarkNet powered by ?? starknet-rs ?? Installation The package will be published to

Jonathan LEI 26 Dec 5, 2022
Discord-to-Cohost compiler written in Rust using Tera

Cohoard - Post formatted chatlogs to Cohost! Cohoard is a tool for turning chatlogs into formatted posts on Cohost. You can use Cohoard to easily form

Aaron Kofsky 14 Dec 15, 2022
Vyper-Compiler Version Manager in Rust

Vyper Compiler Version Manager in Rust Install $ cargo install --git https://github.com/storming0x/vvm-rs --locked vvm-rs Install from source $ git c

Storming0x 26 Dec 15, 2022