75 releases (34 stable)

new 2.9.0 Nov 28, 2024
2.8.5 Nov 18, 2024
2.7.0-rc.3 Jul 16, 2024
2.6.3 Mar 12, 2024
0.1.0 Jan 3, 2023

#512 in Magic Beans

Download history 7674/week @ 2024-08-08 6193/week @ 2024-08-15 5179/week @ 2024-08-22 9302/week @ 2024-08-29 6725/week @ 2024-09-05 14032/week @ 2024-09-12 9417/week @ 2024-09-19 7294/week @ 2024-09-26 8262/week @ 2024-10-03 8348/week @ 2024-10-10 6390/week @ 2024-10-17 6264/week @ 2024-10-24 10260/week @ 2024-10-31 7678/week @ 2024-11-07 7656/week @ 2024-11-14 7205/week @ 2024-11-21

34,407 downloads per month
Used in 54 crates (21 directly)

Custom license

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

~12–20MB
~256K SLoC