Skip to content

Commit

Permalink
remove solana-sdk from solana-bucket-map (#3716)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey authored Nov 25, 2024
1 parent 1ba36a2 commit eeb3562
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 12 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.

4 changes: 3 additions & 1 deletion bucket_map/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ memmap2 = { workspace = true }
modular-bitfield = { workspace = true }
num_enum = { workspace = true }
rand = { workspace = true }
solana-clock = { workspace = true }
solana-measure = { workspace = true }
solana-sdk = { workspace = true }
solana-pubkey = { workspace = true }
tempfile = { workspace = true }

[dev-dependencies]
fs_extra = { workspace = true }
rayon = { workspace = true }
solana-logger = { workspace = true }
solana-pubkey = { workspace = true, features = ["rand"] }

[lib]
crate-type = ["lib"]
Expand Down
2 changes: 1 addition & 1 deletion bucket_map/benches/bucket_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extern crate test;
use {
rayon::prelude::*,
solana_bucket_map::bucket_map::{BucketMap, BucketMapConfig},
solana_sdk::pubkey::Pubkey,
solana_pubkey::Pubkey,
std::{collections::hash_map::HashMap, sync::RwLock},
test::Bencher,
};
Expand Down
2 changes: 1 addition & 1 deletion bucket_map/src/bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use {
},
rand::{thread_rng, Rng},
solana_measure::measure::Measure,
solana_sdk::pubkey::Pubkey,
solana_pubkey::Pubkey,
std::{
collections::hash_map::DefaultHasher,
fs,
Expand Down
2 changes: 1 addition & 1 deletion bucket_map/src/bucket_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use {
bucket::Bucket, bucket_item::BucketItem, bucket_map::BucketMapError,
bucket_stats::BucketMapStats, restart::RestartableBucket, MaxSearch, RefCount,
},
solana_sdk::pubkey::Pubkey,
solana_pubkey::Pubkey,
std::{
ops::RangeBounds,
path::PathBuf,
Expand Down
2 changes: 1 addition & 1 deletion bucket_map/src/bucket_item.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use {crate::RefCount, solana_sdk::pubkey::Pubkey};
use {crate::RefCount, solana_pubkey::Pubkey};

#[derive(Debug, Default, Clone)]
pub struct BucketItem<T> {
Expand Down
4 changes: 2 additions & 2 deletions bucket_map/src/bucket_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use {
crate::{
bucket_api::BucketApi, bucket_stats::BucketMapStats, restart::Restart, MaxSearch, RefCount,
},
solana_sdk::pubkey::Pubkey,
solana_pubkey::Pubkey,
std::{
convert::TryInto,
fmt::Debug,
Expand Down Expand Up @@ -491,7 +491,7 @@ mod tests {

let additions = (0..to_add)
.map(|_| {
let k = solana_sdk::pubkey::new_rand();
let k = solana_pubkey::new_rand();
let mut v = gen_rand_value();
if use_batch_insert {
// refcount has to be 1 to use batch insert
Expand Down
3 changes: 2 additions & 1 deletion bucket_map/src/index_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ use {
bv::BitVec,
modular_bitfield::prelude::*,
num_enum::FromPrimitive,
solana_sdk::{clock::Slot, pubkey::Pubkey},
solana_clock::Slot,
solana_pubkey::Pubkey,
std::{fmt::Debug, marker::PhantomData},
};

Expand Down
2 changes: 1 addition & 1 deletion bucket_map/tests/bucket_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use {
rayon::prelude::*,
solana_bucket_map::bucket_map::{BucketMap, BucketMapConfig},
solana_measure::measure::Measure,
solana_sdk::pubkey::Pubkey,
solana_pubkey::Pubkey,
std::path::PathBuf,
};
#[test]
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.

3 changes: 2 additions & 1 deletion svm/examples/Cargo.lock

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

0 comments on commit eeb3562

Please sign in to comment.