Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

removes outdated matches crate from dependencies #33172

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ light-poseidon = "0.1.1"
log = "0.4.20"
lru = "0.7.7"
lz4 = "1.24.0"
matches = "0.1.10"
memmap2 = "0.5.10"
memoffset = "0.9"
merlin = "3"
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ tokio = { workspace = true, features = ["full"] }
trees = { workspace = true }

[dev-dependencies]
assert_matches = { workspace = true }
fs_extra = { workspace = true }
matches = { workspace = true }
raptorq = { workspace = true }
serde_json = { workspace = true }
serial_test = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ extern crate solana_frozen_abi_macro;

#[cfg(test)]
#[macro_use]
extern crate matches;
extern crate assert_matches;
2 changes: 1 addition & 1 deletion entry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ solana-rayon-threadlimit = { workspace = true }
solana-sdk = { workspace = true }

[dev-dependencies]
matches = { workspace = true }
assert_matches = { workspace = true }
solana-logger = { workspace = true }

[lib]
Expand Down
2 changes: 1 addition & 1 deletion entry/src/poh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub fn compute_hashes_per_tick(duration: Duration, hashes_sample_size: u64) -> u
mod tests {
use {
crate::poh::{Poh, PohEntry},
matches::assert_matches,
assert_matches::assert_matches,
solana_sdk::hash::{hash, hashv, Hash},
std::time::Duration,
};
Expand Down
2 changes: 1 addition & 1 deletion gossip/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ license = { workspace = true }
edition = { workspace = true }

[dependencies]
assert_matches = { workspace = true }
bincode = { workspace = true }
bv = { workspace = true, features = ["serde"] }
clap = { workspace = true }
Expand All @@ -19,7 +20,6 @@ indexmap = { workspace = true, features = ["rayon"] }
itertools = { workspace = true }
log = { workspace = true }
lru = { workspace = true }
matches = { workspace = true }
num-traits = { workspace = true }
rand = { workspace = true }
rand_chacha = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion gossip/src/contact_info.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use {
crate::crds_value::MAX_WALLCLOCK,
matches::{assert_matches, debug_assert_matches},
assert_matches::{assert_matches, debug_assert_matches},
serde::{Deserialize, Deserializer, Serialize},
solana_sdk::{
pubkey::Pubkey,
Expand Down
2 changes: 1 addition & 1 deletion gossip/src/crds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ use {
crds_value::{CrdsData, CrdsValue, CrdsValueLabel},
legacy_contact_info::LegacyContactInfo as ContactInfo,
},
assert_matches::debug_assert_matches,
bincode::serialize,
indexmap::{
map::{rayon::ParValues, Entry, IndexMap},
set::IndexSet,
},
lru::LruCache,
matches::debug_assert_matches,
rayon::{prelude::*, ThreadPool},
solana_sdk::{
clock::Slot,
Expand Down
2 changes: 1 addition & 1 deletion gossip/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extern crate log;

#[cfg(test)]
#[macro_use]
extern crate matches;
extern crate assert_matches;

#[macro_use]
extern crate serde_derive;
Expand Down
1 change: 0 additions & 1 deletion ledger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ features = ["lz4"]

[dev-dependencies]
bs58 = { workspace = true }
matches = { workspace = true }
solana-account-decoder = { workspace = true }
solana-logger = { workspace = true }
test-case = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1859,7 +1859,7 @@ pub mod tests {
create_genesis_config, create_genesis_config_with_leader, GenesisConfigInfo,
},
},
matches::assert_matches,
assert_matches::assert_matches,
rand::{thread_rng, Rng},
solana_entry::entry::{create_ticks, next_entry, next_entry_mut},
solana_program_runtime::declare_process_instruction,
Expand Down
2 changes: 1 addition & 1 deletion ledger/src/shred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1031,8 +1031,8 @@ pub fn verify_test_data_shred(
mod tests {
use {
super::*,
assert_matches::assert_matches,
bincode::serialized_size,
matches::assert_matches,
rand::Rng,
rand_chacha::{rand_core::SeedableRng, ChaChaRng},
solana_sdk::{shred_version, signature::Signer, signer::keypair::keypair_from_seed},
Expand Down
2 changes: 1 addition & 1 deletion ledger/src/shred/legacy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ mod test {
use {
super::*,
crate::shred::{shred_code::MAX_CODE_SHREDS_PER_SLOT, ShredType, MAX_DATA_SHREDS_PER_SLOT},
matches::assert_matches,
assert_matches::assert_matches,
};

#[test]
Expand Down
2 changes: 1 addition & 1 deletion ledger/src/shred/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1052,8 +1052,8 @@ mod test {
use {
super::*,
crate::shred::{ShredFlags, ShredId, SignedData},
assert_matches::assert_matches,
itertools::Itertools,
matches::assert_matches,
rand::{seq::SliceRandom, CryptoRng, Rng},
rayon::ThreadPoolBuilder,
solana_sdk::signature::{Keypair, Signer},
Expand Down
2 changes: 1 addition & 1 deletion ledger/src/shredder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ mod tests {
ShredType, MAX_CODE_SHREDS_PER_SLOT,
},
},
assert_matches::assert_matches,
bincode::serialized_size,
matches::assert_matches,
rand::{seq::SliceRandom, Rng},
solana_sdk::{
hash::{hash, Hash},
Expand Down
2 changes: 1 addition & 1 deletion ledger/src/sigverify_shreds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ mod tests {
shred::{ProcessShredsStats, Shred, ShredFlags, LEGACY_SHRED_DATA_CAPACITY},
shredder::{ReedSolomonCache, Shredder},
},
matches::assert_matches,
assert_matches::assert_matches,
rand::{seq::SliceRandom, Rng},
rayon::ThreadPoolBuilder,
solana_entry::entry::Entry,
Expand Down
4 changes: 0 additions & 4 deletions merkle-tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ edition = { workspace = true }
fast-math = { workspace = true }
solana-program = { workspace = true }

# This can go once the SBF toolchain target Rust 1.42.0+
[target.bpfel-unknown-unknown.dependencies]
matches = { workspace = true }

[dev-dependencies]
hex = { workspace = true }

Expand Down
4 changes: 0 additions & 4 deletions merkle-tree/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#![allow(clippy::arithmetic_side_effects)]

#[cfg(target_os = "solana")]
#[macro_use]
extern crate matches;

pub mod merkle_tree;
pub use merkle_tree::MerkleTree;
2 changes: 1 addition & 1 deletion perf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ nix = { workspace = true }
name = "solana_perf"

[dev-dependencies]
matches = { workspace = true }
assert_matches = { workspace = true }
rand_chacha = { workspace = true }
solana-logger = { workspace = true }
test-case = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion perf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern crate log;

#[cfg(test)]
#[macro_use]
extern crate matches;
extern crate assert_matches;

#[macro_use]
extern crate solana_metrics;
Expand Down
2 changes: 1 addition & 1 deletion poh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ solana-sdk = { workspace = true }
thiserror = { workspace = true }

[dev-dependencies]
assert_matches = { workspace = true }
bincode = { workspace = true }
matches = { workspace = true }
rand = { workspace = true }
solana-logger = { workspace = true }
solana-perf = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion poh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ extern crate solana_metrics;

#[cfg(test)]
#[macro_use]
extern crate matches;
extern crate assert_matches;
3 changes: 1 addition & 2 deletions programs/sbf/Cargo.lock

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

2 changes: 1 addition & 1 deletion turbine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ thiserror = { workspace = true }
tokio = { workspace = true }

[dev-dependencies]
matches = { workspace = true }
assert_matches = { workspace = true }
solana-logger = { workspace = true }

[[bench]]
Expand Down
2 changes: 1 addition & 1 deletion turbine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ extern crate solana_metrics;

#[cfg(test)]
#[macro_use]
extern crate matches;
extern crate assert_matches;