Skip to main content

Crate anchor_cli

Crate anchor_cli 

Source

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 --profile consumes for flamegraphs.
fetch
template

Macros§

home_path

Structs§

Opts

Enums§

ClusterCommand
Command
ConfigCommand
IdlCommand
KeygenCommand
KeysCommand
ProgramCommand

Constants§

DEFAULT_MAX_SIGN_ATTEMPTS
Default re-sign attempts when blockhashes expire mid-deploy. Matches Agave’s solana program deploy default (agave/cli/src/program.rs). Each blockhash window is ~60s, so 5 → ~5 minutes of resign budget.
DEFAULT_RPC_PORT
Default RPC port
DOCKER_BUILDER_VERSION
VERSION
WEBSOCKET_PORT_OFFSET
WebSocket port offset for solana-test-validator (RPC port + 1)

Statics§

AVM_HOME

Functions§

build
cargo_build_sbf
Run the configured SBF build command.
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. write_locked_accounts scopes the query to txs that write-locked all of these accounts in recent blocks — passing the accounts the upcoming tx will lock gives a contention-aware fee. Pass &[] for a global median (often too low for hot mainnet windows).
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.
support_version_report
target_dir
Return the cargo build artifacts directory. The successful result is cached.
verify

Type Aliases§

Files
Array of (path, content) tuple.