Skip to content

Commit

Permalink
remove solana-program from dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Aug 3, 2024
1 parent 25c3df7 commit a13d538
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

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

4 changes: 0 additions & 4 deletions sdk/account-info/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ solana-program-error = { workspace = true }
solana-program-memory = { workspace = true }
solana-pubkey = { workspace = true, default-features = false }

[dev-dependencies]
solana-program = { workspace = true }
static_assertions = { workspace = true }

[features]
bincode = ["dep:bincode", "dep:serde"]

Expand Down
5 changes: 0 additions & 5 deletions sdk/account-info/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ pub mod debug_account_data;

// inline from solana_program::entrypoint
const MAX_PERMITTED_DATA_INCREASE: usize = 1_024 * 10;
#[cfg(test)]
static_assertions::const_assert_eq!(
MAX_PERMITTED_DATA_INCREASE,
solana_program::entrypoint::MAX_PERMITTED_DATA_INCREASE
);

/// Account information
#[derive(Clone)]
Expand Down
1 change: 1 addition & 0 deletions sdk/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ unsafe impl std::alloc::GlobalAlloc for BumpAllocator {
}
}

// WARNING: if this is changed, the duplicate definition in solana_account_info must also be changed
/// Maximum number of bytes a program may add to an account during a single realloc
pub const MAX_PERMITTED_DATA_INCREASE: usize = 1_024 * 10;

Expand Down

0 comments on commit a13d538

Please sign in to comment.