Skip to content
Open
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
68 changes: 3 additions & 65 deletions 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 cmd/ethrex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ criterion = { version = "0.5.1", features = [
] }
ethrex-sdk.workspace = true
secp256k1.workspace = true
tempdir = { version = "0.3.7" }
tempfile = { version = "3.8" }

[[bench]]
path = "./bench/import_blocks_benchmark.rs"
Expand Down
4 changes: 2 additions & 2 deletions cmd/ethrex/bench/build_block_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ fn recover_address_for_sk(sk: &SecretKey) -> Address {
}

async fn setup_genesis(accounts: &Vec<Address>) -> (Store, Genesis) {
let storage_path = tempdir::TempDir::new("storage").unwrap();
let storage_path = tempfile::TempDir::new().unwrap();
if std::fs::exists(&storage_path).unwrap_or(false) {
std::fs::remove_dir_all(&storage_path).unwrap();
}
let genesis_file = include_bytes!("../../../fixtures/genesis/l1-dev.json");
let mut genesis: Genesis = serde_json::from_slice(genesis_file).unwrap();
let store = Store::new(
&storage_path.into_path().display().to_string(),
&storage_path.path().display().to_string(),
EngineType::Libmdbx,
)
.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion crates/common/trie/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ libmdbx = ["dep:libmdbx"]
hex.workspace = true
hex-literal.workspace = true
proptest = "1.0.0"
tempdir = "0.3.7"
tempfile = "3.8"
cita_trie = "4.0.0" # used for proptest comparisons
hasher = "0.1.4" # cita_trie needs this
criterion = "0.5.1"
Expand Down
2 changes: 1 addition & 1 deletion crates/storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ libmdbx = ["dep:libmdbx", "ethrex-trie/libmdbx", "dep:tokio"]
[dev-dependencies]
hex.workspace = true
hex-literal.workspace = true
tempdir = "0.3.7"
tempfile = "3.8"
tokio = { workspace = true, features = ["full"] }

[lib]
Expand Down
2 changes: 1 addition & 1 deletion crates/storage/trie_db/libmdbx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ mod test {
table_info,
};
use std::sync::Arc;
use tempdir::TempDir;
use tempfile::TempDir;

#[test]
fn simple_addition() {
Expand Down
Loading