Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix: add back ethers-solc feature for ethers #2376

Merged
merged 2 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions ethers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ abigen = ["ethers-contract/abigen"]
### abigen without reqwest
abigen-offline = ["ethers-contract/abigen-offline"]
## solc
solc-full = ["ethers-solc/full"]
solc-tests = ["ethers-solc/tests"]
ethers-solc = ["dep:ethers-solc", "ethers-etherscan/ethers-solc"]
solc-full = ["ethers-solc?/full"]
solc-tests = ["ethers-solc?/tests"]

# Deprecated
solc-sha2-asm = []
Expand All @@ -77,11 +78,12 @@ eip712 = []
ethers-addressbook.workspace = true
ethers-contract.workspace = true
ethers-core.workspace = true
ethers-etherscan = { workspace = true, features = ["ethers-solc"] }
ethers-etherscan.workspace = true
ethers-middleware.workspace = true
ethers-providers.workspace = true
ethers-signers.workspace = true
ethers-solc.workspace = true

ethers-solc = { workspace = true, optional = true }

[dev-dependencies]
serde.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions ethers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ pub use ethers_providers as providers;
#[doc(inline)]
pub use ethers_signers as signers;
#[doc(inline)]
#[cfg(feature = "ethers-solc")]
pub use ethers_solc as solc;

#[doc(inline)]
Expand All @@ -122,6 +123,7 @@ pub mod prelude {

pub use super::signers::*;

#[cfg(feature = "ethers-solc")]
pub use super::solc::*;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default = ["legacy"]
legacy = ["ethers/legacy"]

[dev-dependencies]
ethers = { workspace = true, features = ["abigen", "rustls", "ws"] }
ethers = { workspace = true, features = ["abigen", "rustls", "ws", "ethers-solc"] }

tokio = { workspace = true, features = ["macros"] }

Expand Down