Build Targets
Transcribed from build.zig. Run zig build --help for the live list on your checkout.
Core EVM, native & WASM
Command Output / Action zig buildRuns the default install step. build.zig attaches no artifact to it, so it produces no library; use native or wasm zig build nativeBuilds zig-out/lib/libguillotine_mini.a (static C ABI archive) zig build wasmBuilds zig-out/bin/guillotine_mini.wasm (wasm32-wasi, ReleaseSmall, reactor) zig build wasm-core wasm-precompile-02Builds the modular core and SHA-256. Select other precompiles by hex address zig build wasm-modularBuilds the core and all 18 standalone WASI precompile modules zig build test-wasmRuns execution and crypto tests against both reactor builds (Node 22+) zig build test-wasm-sizeEnforces raw byte budgets on the core, full reactor and individual precompiles zig build test-traceRuns test_trace.zig deterministic EIP-3155 native trace regression zig build unitRuns EVM and client module unit tests, test-osaka-properties, and test-spec-runner zig build testRuns everything in unit, plus the specs state tests and nethermind-diff (skip with -Dnethermind-diff=false) zig build test-osaka-propertiesRuns Osaka execution and precompile property tests (test/osaka_property_fuzz_test.zig) zig build test-spec-runnerRuns test/specs/runner.zig unit tests without fixtures
Ethereum specification suites
Command Action zig build specsRuns execution-specs GeneralStateTests zig build specs-blockchainRuns execution-specs BlockchainTests zig build specs-<fork>Runs state tests for one fork (frontier, homestead, byzantium, constantinople, istanbul, berlin, paris, shanghai, cancun, prague, osaka) zig build specs-<fork>-<slice>Runs a granular EIP or opcode slice (e.g., specs-shanghai-push0, specs-cancun-tstore-basic, specs-cancun-mcopy, specs-byzantium-modexp)
The test runner matches TEST_FILTER as a plain, case-sensitive substring (test/utils.zig matchesFilter). Every Berlin, Frontier, Prague, and Osaka sub-step filter in build.zig uses regex syntax (.*, (a|b), [^_2]), so those sub-steps, and the specs-berlin, specs-frontier, specs-prague, and specs-osaka steps built from them, select zero tests. Cancun, Shanghai, Byzantium, Constantinople, and Istanbul sub-steps use plain substrings.
Client module tests & benchmarks (in-repo Guillotine work)
Command Subsystem zig build test-db / bench-dbDatabase abstraction (client/db) zig build test-trie / bench-trie / nethermind-diffMerkle Patricia Trie (client/trie) zig build test-state / bench-stateWorld state & journal (client/state) zig build test-evm-adapter / bench-evmEVM ↔ WorldState adapter (client/evm) zig build test-blockchain / bench-blockchainChain management (client/blockchain) zig build test-txpool / bench-txpoolTransaction pool (client/txpool) zig build test-rpc / bench-rpcJSON-RPC server (client/rpc) zig build test-engine / bench-engineConsensus Engine API (client/engine) zig build test-network / bench-networkdevp2p / RLPx (client/network) zig build test-sync / bench-syncSync (client/sync) zig build test-runner / bench-cliRunner CLI (client/main.zig, client/cli.zig)
Core EVM & aggregate benchmarks
Run Zig benchmarks with -Doptimize=ReleaseFast for accurate timings. Set BENCH_JSON_OUT=<path> to write structured JSON reports.
Command Scope zig build bench-bytecodeBytecode JUMPDEST bitset analysis, lookup & PUSH immediate decoding zig build bench-storagePersistent/transient Storage & EIP-2929 AccessListManager snapshots zig build bench-frameFrame lifecycle, stack ops, gas metering & contiguous memory R/Wzig build bench-opcodesPer-opcode micro-benchmarks (arithmetic, Osaka CLZ, MCOPY, KECCAK256, LOG, etc.) zig build bench-evm-coreEnd-to-end EVM loops, nested CALL, EIP-3155 Tracer, RevertDecoder & precompiles zig build bench-ffiC-FFI evm_create / evm_execute lifecycle & reused-handle throughput zig build benchAggregate step running all Core EVM and Zig client benchmarks node test/wasm.bench.mjsWASI reactor instantiation & execution benchmarks (after zig build wasm) bun scripts/bench-summary.tsUnified summary & baseline diff across all .bench-results/*.json and **/.bench-result.json
Incremental Smithers targets (.smithers/WORKSPACE.ts / PACKAGE.ts)
Command Action smthrs targetsList declared targets across all packages smthrs ci '//...'Build, format-check, test and verify the factory; cached results replay smthrs affected test '//...' --include-exclusive --verboseRun only tests and benchmarks whose inputs changed smthrs test --include-exclusive '//...'Run every test and every exclusive benchmark smthrs test //:bench_opcodes --verboseRun one benchmark exclusively smthrs target //.smithers:factory-write --writeRegenerate .smithers/factory.json and home.json after editing FACTORY.ts smthrs run //:bench_summaryPrint aggregated benchmark summary table
Build options (-D) & environment variables
Flag / Env var Effect -Doptimize=ReleaseFast / ReleaseSmall / ReleaseSafeStandard Zig optimization mode -Dhardfork=<name>, -Dmax-call-depth, -Dstack-size, -Dmax-bytecode-size, -Dmax-initcode-size, -Dblock-gas-limit, -Dmemory-initial-capacity, -Dmemory-limitPopulate the build_options module read by EvmConfig.fromBuildOptions(). Evm(.{}) and the C API ignore them -Dnethermind-diff=falseSkip Nethermind trie differential test during zig build test -Drefresh-specs=trueForce regeneration of execution-specs fixtures BENCH_JSON_OUT="<path>"Emit structured JSON benchmark metrics for bench-summary.ts TEST_FILTER="<substring>"Filter zig build specs tests by case-sensitive substring of the test name TEST_SEQUENTIAL=1Run filtered spec tests sequentially for readable divergence logs INCLUDE_ENGINE_TESTS=1Include blockchain_test_engine fixtures in zig build specs