{"id":13503702,"url":"https://github.com/starkware-libs/cairo","last_synced_at":"2026-02-17T12:26:44.794Z","repository":{"id":63725476,"uuid":"494059063","full_name":"starkware-libs/cairo","owner":"starkware-libs","description":"Cairo is the first Turing-complete language for creating provable programs for general computation.","archived":false,"fork":false,"pushed_at":"2025-05-07T16:12:22.000Z","size":219587,"stargazers_count":1749,"open_issues_count":135,"forks_count":600,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-05-07T19:47:42.274Z","etag":null,"topics":["cairo","computational-integrity","starknet","zero-knowledge-proofs","zkp"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starkware-libs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"docs/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-19T12:19:24.000Z","updated_at":"2025-05-07T16:27:50.000Z","dependencies_parsed_at":"2024-03-03T09:34:16.812Z","dependency_job_id":"874aa267-9bb3-4640-987e-6372188d897b","html_url":"https://github.com/starkware-libs/cairo","commit_stats":{"total_commits":5596,"total_committers":142,"mean_commits":39.40845070422535,"dds":0.7087205146533238,"last_synced_commit":"e503b2b909f520f6707d4cec4ebeefd415825721"},"previous_names":[],"tags_count":113,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkware-libs%2Fcairo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkware-libs%2Fcairo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkware-libs%2Fcairo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkware-libs%2Fcairo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starkware-libs","download_url":"https://codeload.github.com/starkware-libs/cairo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254227603,"owners_count":22035667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cairo","computational-integrity","starknet","zero-knowledge-proofs","zkp"],"created_at":"2024-07-31T23:00:43.696Z","updated_at":"2026-02-11T14:04:07.594Z","avatar_url":"https://github.com/starkware-libs.png","language":"Rust","readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eCairo 🐺 \u003c/h1\u003e\n  \u003ch2\u003e ⚡ Blazing ⚡ fast ⚡ compiler for Cairo, written in 🦀 Rust 🦀 \u003c/h2\u003e\n  \u003cimg src=\"./resources/img/cairo-logo-square.png\" height=\"200\" width=\"200\"\u003e\n  \u003cbr /\u003e\n  \u003ca href=\"https://github.com/starkware-libs/cairo/issues/new?assignees=\u0026labels=bug\u0026template=01_BUG_REPORT.md\u0026title=bug%3A+\"\u003eReport a Bug\u003c/a\u003e\n  -\n  \u003ca href=\"https://github.com/starkware-libs/cairo/issues/new?assignees=\u0026labels=enhancement\u0026template=02_FEATURE_REQUEST.md\u0026title=feat%3A+\"\u003eRequest a Feature\u003c/a\u003e\n  -\n  \u003ca href=\"https://github.com/starkware-libs/cairo/discussions\"\u003eAsk a Question\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003cbr /\u003e\n\n[![GitHub Workflow Status](https://github.com/starkware-libs/cairo/actions/workflows/ci.yml/badge.svg)](https://github.com/starkware-libs/cairo/actions/workflows/ci.yml)\n[![Project license](https://img.shields.io/github/license/starkware-libs/cairo.svg?style=flat-square)](LICENSE)\n[![Releases](https://img.shields.io/github/v/release/starkware-libs/cairo)](https://github.com/starkware-libs/cairo/releases)\n[![Pull Requests welcome](https://img.shields.io/badge/PRs-welcome-ff69b4.svg?style=flat-square)](https://github.com/starkware-libs/cairo/blob/main/docs/CONTRIBUTING.md)\n\n\u003c/div\u003e\n\n\u003cdetails open=\"open\"\u003e\n\u003csummary\u003eTable of Contents\u003c/summary\u003e\n\n- [About](#about)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Compiling and running Cairo files](#compiling-and-running-cairo-files)\n  - [Compiling Starknet Contracts](#compiling-starknet-contracts)\n- [Roadmap](#roadmap)\n- [Support](#support)\n- [Project assistance](#project-assistance)\n- [Contributing](#contributing)\n- [Authors \\\u0026 contributors](#authors--contributors)\n- [Security](#security)\n- [License](#license)\n\n\u003c/details\u003e\n\n---\n\n## About\n\n**[Cairo](https://cairo-lang.org/)** is the first Turing-complete language for creating provable programs for general computation.\n\n## Getting Started\n\n### Prerequisites\n\n- Install [Rust](https://www.rust-lang.org/tools/install)\n- Set up Rust:\n```bash\nrustup override set stable \u0026\u0026 rustup update\n```\n\nEnsure Rust was installed correctly by running the following from the root project directory:\n```bash\ncargo test\n```\n\n### Compiling and running Cairo files\n\nCompile Cairo to Sierra:\n```bash\ncargo run --bin cairo-compile -- --single-file /path/to/input.cairo /path/to/output.sierra --replace-ids\n```\n\nCompile Sierra to casm (Cairo assembly):\n```bash\ncargo run --bin sierra-compile -- /path/to/input.sierra /path/to/output.casm\n```\n\nRun Cairo code directly:\n```bash\ncargo run --bin cairo-run -- --single-file /path/to/file.cairo\n```\n\nSee more information [here](./crates/cairo-lang-runner/README.md). You can also find Cairo examples in the [examples](./examples) directory.\n\nFor running tests specifically, see here: [cairo-test](./crates/cairo-lang-test-runner/README.md)\n\n### Compiling Starknet Contracts\n\nCompile a Starknet Contract to a Sierra ContractClass:\n```bash\ncargo run --bin starknet-compile -- --single-file /path/to/input.cairo /path/to/output.json\n```\n\nOr specify the contract path if multiple contracts are defined in the same project:\n```bash\ncargo run --bin starknet-compile -- /path/to/input/crate /path/to/output.json --contract-path path::to::contract\n```\n\nCompile a Sierra ContractClass to a CASM CompiledClass:\n```bash\ncargo run --bin starknet-sierra-compile -- /path/to/input.json /path/to/output.casm\n```\n\n## Roadmap\n\nThe next milestone is to reach feature parity with the old Cairo version.\nYou can track the exact progress [here](./docs/FEATURE_PARITY.md).\n\n## Support\n\n- We encourage developers to ask and answer questions on [Stack Overflow](https://stackoverflow.com/questions/tagged/cairo-lang).\n- Contact options are listed on [this GitHub profile](https://github.com/starkware-libs)\n\n## Project assistance\n\nIf you want to say **thank you** and/or support active development of Cairo:\n\n- Add a [GitHub Star](https://github.com/starkware-libs/cairo) to the project.\n- Tweet about your Cairo work.\n- Write interesting articles about the project on [Dev.to](https://dev.to/), [Medium](https://medium.com/) or your personal blog.\n\nTogether, we can make Cairo **better**!\n\n## Contributing\n\nFirst off, thanks for taking the time to contribute! Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are **greatly appreciated**.\n\nPlease read [our contribution guidelines](docs/CONTRIBUTING.md), and thank you for being involved!\n\n## Authors \u0026 contributors\n\nFor a full list of all authors and contributors, see [the contributors page](https://github.com/starkware-libs/cairo/contributors).\n\n## Security\n\nCairo follows good practices of security, but 100% security cannot be assured.\nCairo is provided **\"as is\"** without any **warranty**. Use at your own risk.\n\n_For more information and to report security issues, please refer to our [security documentation](docs/SECURITY.md)._\n\n## License\n\nThis project is licensed under the **Apache 2.0** license.\n\nSee [LICENSE](LICENSE) for more information.\n","funding_links":[],"categories":["Applications","Resources","Rust","Layer 2","Prover/Verifier Tools","Web3 and ZKP Framework","应用程序 Applications"],"sub_categories":["Blockchain","Cryptocurrencies","Starknet","加密货币 Cryptocurrencies"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarkware-libs%2Fcairo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarkware-libs%2Fcairo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarkware-libs%2Fcairo/lists"}