Cargo Features
[dependencies]
sol-chainsaw = { version = "0.0.2", default-features = false, features = ["network", "json", "bson", "test_idl_fetch", "task_idl_update", "task_idl_triage", "task_fetch_accounts_for_all_programs", "task_fetch_accounts_for_program", "task_fetch_account", "task_deserialize_account_type_address_for_program", "task_deserialize_account_type_for_program", "task_deserialize_accounts_for_program", "task_deserialize_accounts_for_all_programs"] }
- default = json
-
The
json
feature is set by default wheneversol-chainsaw
is added without
somewhere in the dependency tree.default-features = false - network task_fetch_account? task_fetch_accounts…all_programs? task_fetch_accounts_for_program? task_idl_triage? task_idl_update? test_idl_fetch? = flate2, futures, solana-account-decoder, solana-client
-
Enables IDL/Account client which fetches and deserializes IDL or Accounts from chain
Affects
sol-chainsaw::network
… - json default
-
Includes to-json deserializers
Affects
sol-chainsaw::json
… - bson
-
Includes to-bson deserializers
Enables bson
Bson only
Affects
sol-chainsaw::bson
… - test_idl_fetch = network
-
enables test task that fetches IDL from chain
- task_idl_update = network
-
Development features enabling tests that perform specific tasks
Updates all IDLs from chain
cargo test --features test_idl_update -- --nocapture
- task_idl_triage = network
-
## Triages IDLs that failed to deserialize
- task_fetch_accounts_for_all_programs = network
-
## Updates accounts for all known program from chain (requires COUNT env var)
- task_fetch_accounts_for_program = network
-
## Updates accounts for specific program from chain (requires PROGRAM_ID env var)
- task_fetch_account = network
-
## Fetches an account for specific address and stores it in tmp dir (requires ADDRESS env var)
- task_deserialize_account_type_address_for_program
-
Deserializes accounts that were fetched previously for a specific program,
type and address (requires PROGRAM_ID, ACCOUNT_TYPE and ADDRESS env vars)
- task_deserialize_account_type_for_program
-
Deserializes accounts that were fetched previously for a specific program
and type (requires PROGRAM_ID and ACCOUNT_TYPE env vars)
- task_deserialize_accounts_for_program
-
## Deserializes accounts that were fetched previously for a specific program (requires PROGRAM_ID env var)
- task_deserialize_accounts_for_all_programs
-
## Deserializes accounts that were fetched previously for all programs
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- solana-client network?
-
Enables solana-client ^1.14.11
Network Only
- flate2 network?
- solana-account-decoder network?
-
Enables solana-account-decoder ^1.14.11
- futures network?