Cargo Features

[dependencies]
ethers-contract = { version = "2.0.14", default-features = false, features = ["providers", "abigen", "abigen-online", "celo", "optimism", "legacy", "rustls", "openssl", "abigen-offline", "eip712"] }
default = abigen, providers

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

providers default = ethers-providers

Enables providers of ethers-contract-abigen and ethers-contract-derive

ethers-contract-abigen:

abigen

Affects error::EthError.from_rpc_response, event_core::EthEvent.new

abigen default abigen-offline? abigen-online? = ethers-contract-abigen, ethers-contract-derive
abigen-online = abigen

Enables online of ethers-contract-abigen

celo = legacy

Enables celo of ethers-core and ethers-providers

ethers-core:

celo support extends the transaction format with extra fields

optimism

Enables optimism of ethers-core and ethers-providers

legacy celo?
rustls

Enables rustls of ethers-contract-abigen

openssl

Enables openssl of ethers-contract-abigen

abigen-offline = abigen

Deprecated

eip712

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

ethers-providers celo? optimism? providers
ethers-contract-abigen abigen abigen-online? openssl? providers rustls?
ethers-contract-derive abigen providers