| Crates.io | starknet-native-compile |
| lib.rs | starknet-native-compile |
| version | 0.9.0-rc.0 |
| created_at | 2025-10-22 21:20:25.902402+00 |
| updated_at | 2025-12-19 00:10:45.54056+00 |
| description | A binary for compiling Sierra contracts with Cairo Native |
| homepage | |
| repository | https://github.com/lambdaclass/cairo_native |
| max_upload_size | |
| id | 1896283 |
| size | 97,149 |
A binary for compiling Sierra contracts with Cairo Native.
See Cairo Native's instructions on how to build this binary properly.
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.