Cargo Features

[dependencies]
ethers = { version = "2.0.14", default-features = false, features = ["legacy", "celo", "optimism", "rustls", "openssl", "ws", "legacy-ws", "ipc", "dev-rpc", "aws", "ledger", "trezor", "yubi", "abigen", "abigen-online", "etherscan", "solc", "solc-full", "solc-tests", "abigen-offline", "eip712", "ethers-solc", "solc-sha2-asm"] }
default = abigen, etherscan, rustls

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

legacy celo?

workspace-wide features

Enables legacy of ethers-contract and ethers-core

celo = legacy

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

ethers-core:

celo support extends the transaction format with extra fields

optimism

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

rustls default

Enables rustls of ethers-contract, optional ethers-etherscan, ethers-middleware, ethers-providers, and optional ethers-solc

ethers-providers:

we use the webpki roots so we can build static binaries w/o any root cert dependencies on the host

openssl

Enables openssl of ethers-contract, optional ethers-etherscan, ethers-middleware, ethers-providers, and optional ethers-solc

ws

Enables ws of ethers-providers

legacy-ws

Enables legacy-ws of ethers-providers

ipc

Enables ipc of ethers-providers

dev-rpc

Enables dev-rpc of ethers-providers

aws

Enables aws of ethers-signers

ledger

Enables ledger of ethers-signers

trezor

Enables trezor of ethers-signers

yubi

Enables yubi of ethers-signers

abigen default abigen-offline?

ethers-contracts

Enables abigen of ethers-contract

abigen-online

Enables abigen-online of ethers-contract

etherscan default

Enables ethers-etherscan, etherscan of ethers-middleware

solc ethers-solc?

Enables ethers-solc, ethers-solc of optional ethers-etherscan

solc-full

Enables full of optional ethers-solc

solc-tests

Enables tests of optional ethers-solc

abigen-offline = abigen

Deprecated

eip712
ethers-solc = solc
solc-sha2-asm