Modules§
- codama
- Codama IDL integration for the Anchor CLI.
- config
- coverage
anchor coverage— generates LCOV source-level coverage from SBF register traces. Reuses the debugger’s DWARF resolution to map executed PCs to source lines.- debugger
anchor debugger— a foundry-style SBF instruction stepper built on the same per-test register traces that--profileconsumes for flamegraphs.- rust_
template
Macros§
Structs§
Enums§
Constants§
- BUILD_
SUBCOMMAND - Subcommand + toolchain pin passed to cargo for every SBF build the CLI
invokes.
--tools-version v1.52is the SBF platform-tools release the rest of anchor’s stack is tested against; using anything else risks link errors against the bundled stdlib (e.g.feature edition2024 is requiredwhen the user’s host toolchain is too old to build modern transitive deps). - DEFAULT_
RPC_ PORT - Default RPC port
- DOCKER_
BUILDER_ VERSION - VERSION
- WEBSOCKET_
PORT_ OFFSET - WebSocket port offset for solana-test-validator (RPC port + 1)
Statics§
Functions§
- build
- cargo_
build_ sbf - Shell out to
cargo build-sbfwith our pinned toolchain (BUILD_SUBCOMMAND) plus any user-suppliedextra_args. - create_
files - Create files from the given (path, content) tuple array.
- entry
- expand
- get_
recommended_ micro_ lamport_ fee - Get the recommended priority fee from the RPC client, falling back to 0 if unavailable
- override_
or_ create_ files - Override or create files from the given (path, content) tuple array.
- prepend_
compute_ unit_ ix - Prepend a compute unit ix, if the priority fee is greater than 0.
- target_
dir - Return the cargo build artifacts directory. The successful result is cached.
- verify
Type Aliases§
- Files
- Array of (path, content) tuple.