Home

Awesome

Cairo Learning

Cairo lang learning notes

Environment

Setting up python environment:

python -m venv ~/cairo_venv
source ~/cairo_venv/bin/activate

Compiling:

cairo-compile app.cairo --output app_compiled.json

Running:

cairo-run --program=app_compiled.json --print_output --print_info --relocate_prints --print_memory

Format:

cairo-format -i app.cairo

Examples

There's a make helper for running examples in repo, e.g. running fib.cairo:

make run name=fib

Notes

License

MIT