From 0e48b7928731f0d0b80e50115c353e0b6710d362 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 7 Oct 2021 09:36:22 -0700 Subject: [PATCH] move derive-eip712 deps to dev deps --- ethers-contract/Cargo.toml | 1 - ethers-contract/src/lib.rs | 3 +++ ethers-core/ethers-derive-eip712/Cargo.toml | 8 +++++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ethers-contract/Cargo.toml b/ethers-contract/Cargo.toml index 2c10c218f..b7afff185 100644 --- a/ethers-contract/Cargo.toml +++ b/ethers-contract/Cargo.toml @@ -31,7 +31,6 @@ ethers-contract-abigen = { version = "^0.5.0", path = "ethers-contract-abigen" } ethers-contract-derive = { version = "^0.5.0", path = "ethers-contract-derive" } ethers-derive-eip712 = { version = "0.1.0", path = "../ethers-core/ethers-derive-eip712"} - [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] tokio = { version = "1.5", default-features = false, features = ["macros"] } diff --git a/ethers-contract/src/lib.rs b/ethers-contract/src/lib.rs index ff93c8b5b..2a2858166 100644 --- a/ethers-contract/src/lib.rs +++ b/ethers-contract/src/lib.rs @@ -55,3 +55,6 @@ pub use ethers_contract_derive::{abigen, EthAbiType, EthEvent}; // Hide the Lazy re-export, it's just for convenience #[doc(hidden)] pub use once_cell::sync::Lazy; + +#[cfg(feature = "eip712")] +pub use ethers_derive_eip712::*; diff --git a/ethers-core/ethers-derive-eip712/Cargo.toml b/ethers-core/ethers-derive-eip712/Cargo.toml index 79bac8cf3..d8a2efb00 100644 --- a/ethers-core/ethers-derive-eip712/Cargo.toml +++ b/ethers-core/ethers-derive-eip712/Cargo.toml @@ -11,10 +11,12 @@ proc-macro = true quote = "1.0.9" syn = "1.0.77" ethers-core = { version = "^0.5.0", path = "../", default-features = false, features = ["eip712"] } -ethers-contract = { version = "^0.5.0", path = "../../ethers-contract"} -ethers-contract-derive = { version = "^0.5.0", path = "../../ethers-contract/ethers-contract-derive" } -ethers-signers = { version = "^0.5.0", path = "../../ethers-signers" } hex = "0.4.3" serde = "1.0.130" serde_json = "1.0.68" proc-macro2 = "1.0.29" + +[dev-dependencies] +ethers-contract = { version = "^0.5.0", path = "../../ethers-contract"} +ethers-contract-derive = { version = "^0.5.0", path = "../../ethers-contract/ethers-contract-derive" } +ethers-signers = { version = "^0.5.0", path = "../../ethers-signers" } \ No newline at end of file