pmuens / hello-cairo

Learning Cairo while following the official tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello Cairo

Learning Cairo while following the official tutorial.

Setup

  1. git clone <url>
  2. nix-shell
  3. poetry shell

Optional: Update the cairo.cairoFormatPath property in the .vscode/settings.json file. Run which cairo-format within a Poetry shell to get the project-specific cairo-format path.

Optional: Update the python.formatting.blackPath property in the .vscode/settings.json file. Run which black within a Poetry shell to get the project-specific black path.

Useful Commands

nix-shell

poetry init
poetry shell

cairo-format -i name.cairo

cairo-compile --version
cairo-compile name.cairo --output name_compiled.json

cairo-run --program=name_compiled.json --print_output --print_info --relocate_prints [--layout=small] [--program_input=name.json] [--tracer]

About

Learning Cairo while following the official tutorial


Languages

Language:Cairo 93.3%Language:Python 6.3%Language:Nix 0.4%