fix(solc): features part 2

This commit is contained in:
DaniPopes 2023-03-21 23:19:16 +01:00
parent 80ac3947d0
commit 2e77b6bcdc
No known key found for this signature in database
GPG Key ID: 0F09640DDB7AC692
6 changed files with 6 additions and 6 deletions

View File

@ -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"]

View File

@ -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);
}
}

View File

@ -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"]

View File

@ -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]

View File

@ -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"]

View File

@ -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