74 releases (33 stable)

2.9.0-dev.0 Oct 20, 2024
2.8.4 Oct 7, 2024
2.7.0-rc.3 Jul 16, 2024
2.6.3 Mar 12, 2024
0.1.0 Jan 3, 2023

#146 in Magic Beans

Download history 8559/week @ 2024-07-30 6581/week @ 2024-08-06 7475/week @ 2024-08-13 5458/week @ 2024-08-20 6540/week @ 2024-08-27 9653/week @ 2024-09-03 7941/week @ 2024-09-10 14634/week @ 2024-09-17 8018/week @ 2024-09-24 6863/week @ 2024-10-01 8609/week @ 2024-10-08 7377/week @ 2024-10-15 5845/week @ 2024-10-22 8740/week @ 2024-10-29 8333/week @ 2024-11-05 7636/week @ 2024-11-12

32,454 downloads per month
Used in 51 crates (20 directly)

Custom license

645KB
14K SLoC

Sierra is an intermediate representation between high level Cairo and compilation targets, such as CASM. Sierra code is guaranteed to be "safe"* by construction. Sierra has a primitive, yet rich typing system to express all high level code while guaranteeing safety and allowing for efficient compilation down to the target.

Safety - this means a few things:

  1. There are no "panics" / "runtime errors". Every function is guaranteed to return.
  2. There are no infinite loops. Moreover, every program "counts" its own steps, and returns when the limit is reached.
  3. Builtin library functions are always used correctly.

Dependencies

~11–19MB
~235K SLoC