# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.86.0"
name = "litesvm"
version = "0.10.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast and lightweight Solana VM simulator for testing solana programs"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/LiteSVM/litesvm"

[features]
hashbrown = ["dep:hashbrown"]
internal-test = []
invocation-inspect-callback = []
nodejs-internal = ["dep:qualifier_attr"]
precompiles = ["dep:agave-precompiles"]
register-tracing = [
    "invocation-inspect-callback",
    "dep:hex",
    "dep:sha2",
]
serde = []

[lib]
name = "litesvm"
path = "src/lib.rs"

[[test]]
name = "account_locks"
path = "tests/account_locks.rs"

[[test]]
name = "blockhash"
path = "tests/blockhash.rs"

[[test]]
name = "compute_budget"
path = "tests/compute_budget.rs"

[[test]]
name = "config_program"
path = "tests/config_program.rs"

[[test]]
name = "counter_test"
path = "tests/counter_test.rs"

[[test]]
name = "fees"
path = "tests/fees.rs"

[[test]]
name = "parsing"
path = "tests/parsing.rs"

[[test]]
name = "precompiles"
path = "tests/precompiles.rs"
required-features = ["precompiles"]

[[test]]
name = "pubkey_signer"
path = "tests/pubkey_signer.rs"

[[test]]
name = "spl"
path = "tests/spl.rs"

[[test]]
name = "stake_program"
path = "tests/stake_program.rs"

[[test]]
name = "system"
path = "tests/system.rs"

[[test]]
name = "test_dflow_load"
path = "tests/test_dflow_load.rs"

[[test]]
name = "tx_history"
path = "tests/tx_history.rs"

[[bench]]
name = "hashing"
path = "benches/hashing.rs"
harness = false

[[bench]]
name = "max_perf"
path = "benches/max_perf.rs"
harness = false

[[bench]]
name = "simple_bench"
path = "benches/simple_bench.rs"
harness = false

[dependencies.agave-feature-set]
version = "3.1.0"

[dependencies.agave-precompiles]
version = "3.1.0"
features = ["agave-unstable-api"]
optional = true

[dependencies.agave-reserved-account-keys]
version = "3.1.0"
features = ["agave-unstable-api"]

[dependencies.agave-syscalls]
version = "3.1.0"

[dependencies.ansi_term]
version = "0.12"

[dependencies.bincode]
version = "1.3.3"

[dependencies.hashbrown]
version = "0.16.0"
optional = true

[dependencies.hex]
version = "0.4.3"
optional = true

[dependencies.indexmap]
version = "2.12"

[dependencies.itertools]
version = "0.14"

[dependencies.log]
version = "0.4"

[dependencies.qualifier_attr]
version = "0.2.2"
optional = true

[dependencies.serde]
version = "1.0.203"

[dependencies.sha2]
version = "0.10.9"
optional = true

[dependencies.solana-account]
version = "3.2.0"

[dependencies.solana-address]
version = "2.0"

[dependencies.solana-address-lookup-table-interface]
version = "3.0"
features = [
    "bincode",
    "bytemuck",
]

[dependencies.solana-bpf-loader-program]
version = "3.1.0"

[dependencies.solana-builtins]
version = "3.1.0"
features = ["agave-unstable-api"]

[dependencies.solana-clock]
version = "3.0"

[dependencies.solana-compute-budget]
version = "3.1.0"

[dependencies.solana-compute-budget-instruction]
version = "3.1.0"
features = ["agave-unstable-api"]

[dependencies.solana-epoch-rewards]
version = "3.0"

[dependencies.solana-epoch-schedule]
version = "3.0"

[dependencies.solana-fee]
version = "3.1"
features = ["agave-unstable-api"]

[dependencies.solana-fee-structure]
version = "3.0"

[dependencies.solana-hash]
version = "3.1.0"

[dependencies.solana-instruction]
version = "3.0"

[dependencies.solana-instructions-sysvar]
version = "3.0"

[dependencies.solana-keypair]
version = "3.1"

[dependencies.solana-last-restart-slot]
version = "3.0"

[dependencies.solana-loader-v3-interface]
version = "6.1.0"

[dependencies.solana-loader-v4-interface]
version = "3.1.0"

[dependencies.solana-message]
version = "3.0.1"

[dependencies.solana-native-token]
version = "3.0"

[dependencies.solana-nonce]
version = "3.0"

[dependencies.solana-nonce-account]
version = "3.0"

[dependencies.solana-precompile-error]
version = "3.0"

[dependencies.solana-program-error]
version = "3.0"

[dependencies.solana-program-runtime]
version = "3.0"

[dependencies.solana-rent]
version = "3.0"

[dependencies.solana-sdk-ids]
version = "3.0"

[dependencies.solana-sha256-hasher]
version = "3.1.0"

[dependencies.solana-signature]
version = "3.1.0"

[dependencies.solana-signer]
version = "3.0"

[dependencies.solana-slot-hashes]
version = "3.0"

[dependencies.solana-slot-history]
version = "3.0"

[dependencies.solana-stake-interface]
version = "2.0.1"

[dependencies.solana-svm-callback]
version = "3.1.0"

[dependencies.solana-svm-log-collector]
version = "3.1.0"

[dependencies.solana-svm-timings]
version = "3.1.0"

[dependencies.solana-svm-transaction]
version = "3.0.0"

[dependencies.solana-system-interface]
version = "2.0"
features = ["bincode"]

[dependencies.solana-system-program]
version = "3.1.0"

[dependencies.solana-sysvar]
version = "3.0"

[dependencies.solana-sysvar-id]
version = "3.0"

[dependencies.solana-transaction]
version = "3.0"
features = ["verify"]

[dependencies.solana-transaction-context]
version = "3.1.0"

[dependencies.solana-transaction-error]
version = "3.0.0"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.ed25519-dalek]
version = "=1.0.1"

[dev-dependencies.libsecp256k1]
version = "0.6.0"

[dev-dependencies.serde]
version = "1.0.203"

[dev-dependencies.solana-clock]
version = "3.0"

[dev-dependencies.solana-compute-budget-interface]
version = "3.0"

[dev-dependencies.solana-config-interface]
version = "2.0.0"
features = ["bincode"]

[dev-dependencies.solana-ed25519-program]
version = "3.0"

[dev-dependencies.solana-keypair]
version = "3.1"

[dev-dependencies.solana-program-option]
version = "3.0"

[dev-dependencies.solana-program-pack]
version = "3.0"

[dev-dependencies.solana-secp256k1-program]
version = "3.0"
features = ["bincode"]

[dev-dependencies.solana-signer]
version = "3.0"

[dev-dependencies.solana-vote-interface]
version = "5.0.0"
features = ["bincode"]

[dev-dependencies.spl-associated-token-account-interface]
version = "2.0.0"

[dev-dependencies.spl-token-interface]
version = "2.0.0"

[dev-dependencies.test-log]
version = "0.2"

[lints.clippy]
result_large_err = "allow"
