#stark-net #contract #native #binary #cairo-stark-net #cairo-starknet

app starknet-native-compile

A binary for compiling Sierra contracts with Cairo Native

2 releases

new 0.7.2 Nov 19, 2025
0.7.1 Oct 22, 2025

#6 in #cairo-stark-net

Download history 425/week @ 2025-10-21 1491/week @ 2025-10-28 1187/week @ 2025-11-04 1878/week @ 2025-11-11

4,981 downloads per month

Apache-2.0

2MB
43K SLoC

Starknet Native Compile

A binary for compiling Sierra contracts with Cairo Native.

Requirements

See Cairo Native's instructions on how to build this binary properly.

Usage

First, compile a sierra contract class with starknet-native-compile. The contract class format should be compatible with cairo_lang_starknet_classes::contract_class::ContractClass.

starknet-native-compile <CONTRACT_CLASS> <OUTPUT_LIBRARY>

Then, load and execute the shared library with cairo_native::executor::AotContractExecutor.

Dependencies

~42–61MB
~1M SLoC