solana/programs/sbf/Cargo.toml

211 lines
6.9 KiB
TOML
Raw Normal View History

[workspace.package]
2023-10-03 08:20:24 -07:00
version = "1.18.0"
description = "Solana SBF test program written in Rust"
authors = ["Solana Labs Maintainers <maintainers@solanalabs.com>"]
repository = "https://github.com/solana-labs/solana"
homepage = "https://solanalabs.com/"
license = "Apache-2.0"
2021-11-30 16:47:00 -08:00
edition = "2021"
[workspace.dependencies]
array-bytes = "=1.4.1"
bincode = { version = "1.1.4", default-features = false }
blake3 = "1.0.0"
byteorder = "1.3.2"
elf = "0.0.10"
Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) * sdk: Add concurrent support for rand 0.7 and 0.8 * Update rand, rand_chacha, and getrandom versions * Run command to replace `gen_range` Run `git grep -l gen_range | xargs sed -i'' -e 's/gen_range(\(\S*\), /gen_range(\1../' * sdk: Fix users of older `gen_range` * Replace `hash::new_rand` with `hash::new_with_thread_rng` Run: ``` git grep -l hash::new_rand | xargs sed -i'' -e 's/hash::new_rand([^)]*/hash::new_with_thread_rng(/' ``` * perf: Use `Keypair::new()` instead of `generate` * Use older rand version in zk-token-sdk * program-runtime: Inline random key generation * bloom: Fix clippy warnings in tests * streamer: Scope rng usage correctly * perf: Fix clippy warning * accounts-db: Map to char to generate a random string * Remove `from_secret_key_bytes`, it's just `keypair_from_seed` * ledger: Generate keypairs by hand * ed25519-tests: Use new rand * runtime: Use new rand in all tests * gossip: Clean up clippy and inline keypair generators * core: Inline keypair generation for tests * Push sbf lockfile change * sdk: Sort dependencies correctly * Remove `hash::new_with_thread_rng`, use `Hash::new_unique()` * Use Keypair::new where chacha isn't used * sdk: Fix build by marking rand 0.7 optional * Hardcode secret key length, add static assertion * Unify `getrandom` crate usage to fix linking errors * bloom: Fix tests that require a random hash * Remove some dependencies, try to unify others * Remove unnecessary uses of rand and rand_core * Update lockfiles * Add back some dependencies to reduce rebuilds * Increase max rebuilds from 14 to 15 * frozen-abi: Remove `getrandom` * Bump rebuilds to 17 * Remove getrandom from zk-token-proof
2023-08-21 10:11:21 -07:00
getrandom = "0.2.10"
itertools = "0.10.1"
libsecp256k1 = { version = "0.7.0", default-features = false }
log = "0.4.11"
miow = "0.3.6"
2020-12-11 14:14:36 -08:00
net2 = "0.2.37"
num-derive = "0.3"
num-traits = "0.2"
Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) * sdk: Add concurrent support for rand 0.7 and 0.8 * Update rand, rand_chacha, and getrandom versions * Run command to replace `gen_range` Run `git grep -l gen_range | xargs sed -i'' -e 's/gen_range(\(\S*\), /gen_range(\1../' * sdk: Fix users of older `gen_range` * Replace `hash::new_rand` with `hash::new_with_thread_rng` Run: ``` git grep -l hash::new_rand | xargs sed -i'' -e 's/hash::new_rand([^)]*/hash::new_with_thread_rng(/' ``` * perf: Use `Keypair::new()` instead of `generate` * Use older rand version in zk-token-sdk * program-runtime: Inline random key generation * bloom: Fix clippy warnings in tests * streamer: Scope rng usage correctly * perf: Fix clippy warning * accounts-db: Map to char to generate a random string * Remove `from_secret_key_bytes`, it's just `keypair_from_seed` * ledger: Generate keypairs by hand * ed25519-tests: Use new rand * runtime: Use new rand in all tests * gossip: Clean up clippy and inline keypair generators * core: Inline keypair generation for tests * Push sbf lockfile change * sdk: Sort dependencies correctly * Remove `hash::new_with_thread_rng`, use `Hash::new_unique()` * Use Keypair::new where chacha isn't used * sdk: Fix build by marking rand 0.7 optional * Hardcode secret key length, add static assertion * Unify `getrandom` crate usage to fix linking errors * bloom: Fix tests that require a random hash * Remove some dependencies, try to unify others * Remove unnecessary uses of rand and rand_core * Update lockfiles * Add back some dependencies to reduce rebuilds * Increase max rebuilds from 14 to 15 * frozen-abi: Remove `getrandom` * Bump rebuilds to 17 * Remove getrandom from zk-token-proof
2023-08-21 10:11:21 -07:00
rand = "0.8"
rustversion = "1.0.14"
serde = "1.0.112"
serde_json = "1.0.56"
2023-10-03 08:20:24 -07:00
solana-account-decoder = { path = "../../account-decoder", version = "=1.18.0" }
solana-accounts-db = { path = "../../accounts-db", version = "=1.18.0" }
solana-bpf-loader-program = { path = "../bpf_loader", version = "=1.18.0" }
solana-cli-output = { path = "../../cli-output", version = "=1.18.0" }
solana-ledger = { path = "../../ledger", version = "=1.18.0" }
solana-logger = { path = "../../logger", version = "=1.18.0" }
solana-measure = { path = "../../measure", version = "=1.18.0" }
solana-program = { path = "../../sdk/program", version = "=1.18.0" }
solana-program-runtime = { path = "../../program-runtime", version = "=1.18.0" }
solana-program-test = { path = "../../program-test", version = "=1.18.0" }
solana-runtime = { path = "../../runtime", version = "=1.18.0" }
solana-sbf-rust-128bit-dep = { path = "rust/128bit_dep", version = "=1.18.0" }
solana-sbf-rust-invoke = { path = "rust/invoke", version = "=1.18.0" }
solana-sbf-rust-invoked = { path = "rust/invoked", version = "=1.18.0", default-features = false }
solana-sbf-rust-many-args-dep = { path = "rust/many_args_dep", version = "=1.18.0" }
solana-sbf-rust-mem = { path = "rust/mem", version = "=1.18.0" }
solana-sbf-rust-param-passing-dep = { path = "rust/param_passing_dep", version = "=1.18.0" }
solana-sbf-rust-realloc = { path = "rust/realloc", version = "=1.18.0", default-features = false }
solana-sbf-rust-realloc-invoke = { path = "rust/realloc_invoke", version = "=1.18.0" }
solana-sdk = { path = "../../sdk", version = "=1.18.0" }
solana-transaction-status = { path = "../../transaction-status", version = "=1.18.0" }
solana-validator = { path = "../../validator", version = "=1.18.0" }
solana-zk-token-sdk = { path = "../../zk-token-sdk", version = "=1.18.0" }
solana_rbpf = "=0.8.0"
static_assertions = "1.1.0"
thiserror = "1.0"
[package]
name = "solana-sbf-programs"
description = "Blockchain, Rebuilt for Scale"
documentation = "https://docs.rs/solana"
readme = "README.md"
publish = false
version = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
[features]
sbf_c = []
sbf_rust = []
dummy-for-ci-check = [
"sbf_c",
"sbf_rust",
]
[build-dependencies]
walkdir = "2"
[dependencies]
bincode = { workspace = true }
byteorder = { workspace = true }
elf = { workspace = true }
itertools = { workspace = true }
log = { workspace = true }
miow = { workspace = true }
net2 = { workspace = true }
solana-account-decoder = { workspace = true }
solana-accounts-db = { workspace = true }
solana-bpf-loader-program = { workspace = true }
solana-cli-output = { workspace = true }
solana-logger = { workspace = true }
solana-measure = { workspace = true }
solana-program-runtime = { workspace = true }
solana-runtime = { workspace = true, features = ["dev-context-only-utils"] }
solana-sbf-rust-invoke = { workspace = true }
solana-sbf-rust-realloc = { workspace = true, features = ["default"] }
solana-sbf-rust-realloc-invoke = { workspace = true }
solana-sdk = { workspace = true }
solana-transaction-status = { workspace = true }
solana_rbpf = { workspace = true }
[dev-dependencies]
solana-ledger = { workspace = true }
solana-sdk = { workspace = true, features = ["dev-context-only-utils"] }
[[bench]]
name = "bpf_loader"
[workspace]
members = [
"rust/128bit",
"rust/128bit_dep",
"rust/alloc",
"rust/alt_bn128",
"rust/alt_bn128_compression",
"rust/big_mod_exp",
2020-11-30 13:06:11 -08:00
"rust/call_depth",
"rust/caller_access",
"rust/curve25519",
2020-10-06 11:03:51 -07:00
"rust/custom_heap",
"rust/dep_crate",
"rust/deprecated_loader",
"rust/dup_accounts",
"rust/error_handling",
"rust/external_spend",
"rust/finalize",
2022-06-23 22:02:41 -07:00
"rust/get_minimum_delegation",
2022-05-19 15:14:28 -07:00
"rust/inner_instruction_alignment_check",
"rust/instruction_introspection",
2020-04-28 14:33:56 -07:00
"rust/invoke",
"rust/invoke_and_error",
"rust/invoke_and_ok",
"rust/invoke_and_return",
2020-04-28 14:33:56 -07:00
"rust/invoked",
"rust/iter",
2022-06-23 22:02:41 -07:00
"rust/log_data",
"rust/many_args",
"rust/many_args_dep",
2020-11-05 22:20:54 -08:00
"rust/mem",
2021-06-01 15:33:17 -07:00
"rust/membuiltins",
"rust/noop",
"rust/panic",
"rust/param_passing",
"rust/param_passing_dep",
"rust/poseidon",
"rust/rand",
"rust/realloc",
"rust/realloc_invoke",
"rust/remaining_compute_units",
"rust/ro_account_modify",
2022-06-23 22:02:41 -07:00
"rust/ro_modify",
"rust/sanity",
"rust/secp256k1_recover",
"rust/sha",
"rust/sibling_inner_instruction",
"rust/sibling_instruction",
"rust/simulation",
2020-11-30 13:06:11 -08:00
"rust/spoof1",
"rust/spoof1_system",
2021-03-30 12:16:21 -07:00
"rust/sysvar",
2020-12-14 15:35:10 -08:00
"rust/upgradeable",
"rust/upgraded",
]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[patch.crates-io]
# We include the following crates as our dependencies from crates.io:
#
# * spl-associated-token-account
# * spl-instruction-padding
# * spl-memo
# * spl-pod
# * spl-token
# * spl-token-2022
# * spl-token-metadata-interface
#
# They are included indirectly, for example, `account-decoder` depends on
#
# solana-sdk = { workspace = true }
#
# and that is specified as
#
# spl-token = "=3.5.0"
#
# in `../../Cargo.toml`.
#
# `spl-token`, in turn, depends on `solana-program`, which we explicitly specify
# above as a local path dependency:
#
# solana-program = { path = "../../sdk/program", version = "=1.16.0" }
#
# Unfortunately, Cargo will try to resolve the `spl-token` `solana-program`
# dependency only using what is available on crates.io. Crates.io normally
# contains a previous version of these crates, and we end up with two versions
# of `solana-program` and `solana-zk-token-sdk` and all of their dependencies in
# our build tree.
#
# If you are developing downstream using non-crates-io solana-program (local or
# forked repo, or from github rev, eg), duplicate the following patch statements
# in your Cargo.toml. If you still hit duplicate-type errors with the patch
# statements in place, run `cargo update -p solana-program` and/or `cargo update
# -p solana-zk-token-sdk` to remove extraneous versions from your Cargo.lock
# file.
#
# There is a similar override in `../../Cargo.toml`. Please keep both comments
# and the overrides in sync.
solana-program = { path = "../../sdk/program" }
solana-zk-token-sdk = { path = "../../zk-token-sdk" }