Cargo Features

[dependencies]
ethers-middleware = { version = "2.0.14", default-features = false, features = ["celo", "etherscan", "optimism", "rustls", "openssl"] }
default = etherscan, rustls

These default features are set whenever ethers-middleware is added without default-features = false somewhere in the dependency tree.

celo

Enables celo of ethers-contract, ethers-core, ethers-providers, and ethers-signers

ethers-core:

celo support extends the transaction format with extra fields

etherscan default

Enables ethers-etherscan

Affects gas_oracle::etherscan

optimism

Enables optimism of ethers-contract, ethers-core, and ethers-providers

rustls default

Enables rustls-tls of reqwest ^0.11.19

for gas oracles

openssl

Enables native-tls of reqwest ^0.11.19