fix: dev deps

This commit is contained in:
DaniPopes 2023-02-24 22:17:52 +01:00
parent 49c7b24fc8
commit 017db8ba11
No known key found for this signature in database
GPG Key ID: 0F09640DDB7AC692
2 changed files with 6 additions and 10 deletions

View File

@ -107,26 +107,21 @@ ethers-contract = { version = "^1.0.0", default-features = false, path = "./ethe
"abigen",
"eip712",
] }
ethers-providers = { version = "^1.0.0", default-features = false, path = "./ethers-providers", features = [
"ws",
] }
tempfile = "3.3.0"
[target.'cfg(target_family = "unix")'.dev-dependencies]
ethers-providers = { version = "^1.0.0", default-features = false, path = "./ethers-providers", features = [
"ws",
"ipc",
] }
bytes = "1.4.0"
eyre = "0.6"
hex = "0.4.3"
rand = "0.8.5"
serde = { version = "1.0.124", features = ["derive"] }
serde_json = "1.0.64"
tempfile = "3.3.0"
tokio = { version = "1.18", features = ["macros", "rt-multi-thread"] }
hex = "0.4.3"
bytes = "1.4.0"
# profile for the wasm example
[profile.release.package.ethers-wasm]
# Tell `rustc` to optimize for small code size.
opt-level = "s"

View File

@ -1,3 +1,5 @@
//! Instantiate `Geth` with Clique enabled.
use ethers::{
core::{rand::thread_rng, utils::Geth},
signers::LocalWallet,
@ -5,7 +7,6 @@ use ethers::{
use eyre::Result;
#[tokio::main]
/// Shows how to instantiate a Geth with Clique enabled.
async fn main() -> Result<()> {
// Generate a random clique signer and set it on Geth.
let data_dir = tempfile::tempdir().expect("should be able to create temp geth datadir");