From dbea856e8c4457db98e3b46322521b3c90503c21 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 8 Nov 2021 21:08:03 +0100 Subject: [PATCH] fix: lift macros feature to lib level (#567) --- ethers-core/src/lib.rs | 1 + ethers-core/src/macros/mod.rs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ethers-core/src/lib.rs b/ethers-core/src/lib.rs index 4f1f8612..a0d3de26 100644 --- a/ethers-core/src/lib.rs +++ b/ethers-core/src/lib.rs @@ -51,6 +51,7 @@ pub mod abi; /// Various utilities pub mod utils; +#[cfg(feature = "macros")] pub mod macros; // re-export rand to avoid potential confusion when there's rand version mismatches diff --git a/ethers-core/src/macros/mod.rs b/ethers-core/src/macros/mod.rs index dae67eba..6a857b11 100644 --- a/ethers-core/src/macros/mod.rs +++ b/ethers-core/src/macros/mod.rs @@ -1,4 +1,2 @@ mod ethers_crate; - -#[cfg(feature = "macros")] pub use ethers_crate::{ethers_contract_crate, ethers_core_crate, ethers_providers_crate};