From 017db8ba1171750fbb1107dcf702d0851a30068f Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Fri, 24 Feb 2023 22:17:52 +0100 Subject: [PATCH] fix: dev deps --- Cargo.toml | 13 ++++--------- examples/geth_clique.rs | 3 ++- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6c2794ac..a2e1d999 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" - diff --git a/examples/geth_clique.rs b/examples/geth_clique.rs index 4df83b73..68be285e 100644 --- a/examples/geth_clique.rs +++ b/examples/geth_clique.rs @@ -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");