diff --git a/ethers-contract/Cargo.toml b/ethers-contract/Cargo.toml index dc0d5483..a964e345 100644 --- a/ethers-contract/Cargo.toml +++ b/ethers-contract/Cargo.toml @@ -47,7 +47,7 @@ ethers-solc.workspace = true ethers-providers = { workspace = true, features = ["ws"] } [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -tokio = { workspace = true, features = ["macros"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } [features] default = ["abigen"] diff --git a/ethers-core/src/types/chain.rs b/ethers-core/src/types/chain.rs index fd23c83b..c6580783 100644 --- a/ethers-core/src/types/chain.rs +++ b/ethers-core/src/types/chain.rs @@ -621,7 +621,7 @@ mod tests { fn serde_to_string_match() { for chain in Chain::iter() { let chain_serde = serde_json::to_string(&chain).unwrap(); - let chain_string = format!("\"{}\"", chain.to_string()); + let chain_string = format!("\"{chain}\""); assert_eq!(chain_serde, chain_string); } } diff --git a/ethers-middleware/Cargo.toml b/ethers-middleware/Cargo.toml index a8710206..a6f2799e 100644 --- a/ethers-middleware/Cargo.toml +++ b/ethers-middleware/Cargo.toml @@ -60,7 +60,7 @@ once_cell.workspace = true reqwest = { workspace = true, features = ["json", "rustls"] } [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -tokio = { workspace = true, features = ["rt", "macros", "time"] } +tokio = { workspace = true, features = ["rt-multi-thread", "macros", "time"] } [features] default = ["rustls"] diff --git a/ethers-providers/Cargo.toml b/ethers-providers/Cargo.toml index 210ffedd..5c89c2bf 100644 --- a/ethers-providers/Cargo.toml +++ b/ethers-providers/Cargo.toml @@ -74,7 +74,7 @@ web-sys = { version = "0.3", features = ["console"] } getrandom.workspace = true [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -tokio = { workspace = true, features = ["rt", "macros", "time"] } +tokio = { workspace = true, features = ["rt-multi-thread", "macros", "time"] } tempfile = "3.4.0" [features] diff --git a/ethers-signers/Cargo.toml b/ethers-signers/Cargo.toml index cd23c776..309e0ef4 100644 --- a/ethers-signers/Cargo.toml +++ b/ethers-signers/Cargo.toml @@ -74,7 +74,7 @@ tracing-subscriber.workspace = true [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] yubihsm = { version = "0.42.0-pre.0", features = ["secp256k1", "usb", "mockhsm"] } -tokio = { workspace = true, features = ["macros", "rt"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } [features] futures = ["futures-util", "futures-executor"] diff --git a/ethers-solc/Cargo.toml b/ethers-solc/Cargo.toml index 0943167f..d4102ceb 100644 --- a/ethers-solc/Cargo.toml +++ b/ethers-solc/Cargo.toml @@ -64,7 +64,7 @@ svm = { package = "svm-rs", version = "0.2", default-features = false, features "blocking", ], optional = true } svm-builds = { package = "svm-rs-builds", version = "0.1", optional = true } -tokio = { workspace = true, features = ["rt"] } +tokio = { workspace = true, features = ["rt-multi-thread"] } [target.'cfg(target_arch = "wasm32")'.dependencies] # NOTE: this enables wasm compatibility for getrandom indirectly