61 releases (26 stable)

2.7.0-dev.0 May 22, 2024
2.6.3 Mar 12, 2024
2.6.0-rc.1 Feb 14, 2024
2.5.0-dev.0 Dec 26, 2023
0.1.0 Jan 3, 2023

#1099 in Magic Beans

Download history 8428/week @ 2024-02-08 7199/week @ 2024-02-15 5719/week @ 2024-02-22 6483/week @ 2024-02-29 6949/week @ 2024-03-07 7469/week @ 2024-03-14 6988/week @ 2024-03-21 6019/week @ 2024-03-28 7510/week @ 2024-04-04 7939/week @ 2024-04-11 6210/week @ 2024-04-18 7412/week @ 2024-04-25 9690/week @ 2024-05-02 4104/week @ 2024-05-09 5618/week @ 2024-05-16 4037/week @ 2024-05-23

24,590 downloads per month
Used in 40 crates (18 directly)

Custom license

620KB
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

~15MB
~239K SLoC