Skip to content

Commit

Permalink
remove solana-sdk from solana-compute-budget (#3375)
Browse files Browse the repository at this point in the history
* remove solana-sdk from solana-compute-budget

* sort deps
  • Loading branch information
kevinheavey authored Oct 30, 2024
1 parent c80a411 commit 8e35a4f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions compute-budget/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ license = { workspace = true }
edition = { workspace = true }

[dependencies]
solana-fee-structure = { workspace = true }
solana-frozen-abi = { workspace = true, optional = true, features = [
"frozen-abi",
] }
solana-sdk = { workspace = true }
solana-program-entrypoint = { workspace = true }

[features]
frozen-abi = [
"dep:solana-frozen-abi",
"solana-sdk/frozen-abi",
]
frozen-abi = ["dep:solana-frozen-abi", "solana-fee-structure/frozen-abi"]

[lints]
workspace = true
2 changes: 1 addition & 1 deletion compute-budget/src/compute_budget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl ComputeBudget {
curve25519_ristretto_multiply_cost: 2_208,
curve25519_ristretto_msm_base_cost: 2303,
curve25519_ristretto_msm_incremental_cost: 788,
heap_size: u32::try_from(solana_sdk::entrypoint::HEAP_LENGTH).unwrap(),
heap_size: u32::try_from(solana_program_entrypoint::HEAP_LENGTH).unwrap(),
heap_cost: DEFAULT_HEAP_COST,
mem_op_base_cost: 10,
alt_bn128_addition_cost: 334,
Expand Down
3 changes: 2 additions & 1 deletion compute-budget/src/compute_budget_limits.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use {
crate::prioritization_fee::{PrioritizationFeeDetails, PrioritizationFeeType},
solana_sdk::{entrypoint::HEAP_LENGTH, fee::FeeBudgetLimits},
solana_fee_structure::FeeBudgetLimits,
solana_program_entrypoint::HEAP_LENGTH,
std::num::NonZeroU32,
};

Expand Down
3 changes: 2 additions & 1 deletion programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8e35a4f

Please sign in to comment.