Cargo Features

[dependencies]
cairo-native = { version = "0.2.5-rc1", default-features = false, features = ["build-cli", "scarb", "with-cheatcode", "with-mem-tracing", "with-runtime"] }
default = build-cli, with-runtime

These default features are set whenever cairo-native is added without default-features = false somewhere in the dependency tree.

build-cli default scarb?

Enables anyhow, cairo-lang-runner, cairo-lang-test-plugin, clap, colored, and tracing-subscriber

Required by cairo-native-dump, cairo-native-run, cairo-native-stress and cairo-native-test binaries

scarb = build-cli

Enables scarb-metadata and scarb-ui

Affects test::find_testable_targets

Required by scarb-native-dump and scarb-native-test binaries

with-cheatcode

Affects starknet::StarknetSyscallHandler.cheatcode, starknet::cairo_native__vtable_cheatcode

with-debug-utils with-mem-tracing
with-runtime default

Enables cairo-native-runtime

Affects utils::register_runtime_symbols