Why Alloy?
Alloy is the next-generation Rust toolkit for Ethereum development and a complete rewrite of ethers-rs. Alloy offers a modular, high-performance, and developer-friendly experience for building on EVM-compatible chains.
It addresses the various pain points of existing tooling in the Rust Ethereum ecosystem, such as perfomance bottlenecks, cumbersome APIs and having to deal with feature flag that bloat your application. Alloy turns directly addresses these challenges with:
-
Layered Architecture: Replaces monolithic middleware with composable layers and fillers, enhancing modularity and clarity.
-
Multi-Chain Support: The
Network
trait allows seamless integration with any EVM-compatible chain without feature flags. -
Optimized Primitives: Achieves up to 60% faster U256 operations and 10x faster ABI encoding through rewritten core components.
-
Simplified Provider Usage: Eliminates the need for Arc wrapping with cleaner, more intuitive provider and signer implementations.
-
First-class contract interactions: The
sol!
macro enables writing Solidity directly in Rust code, simplifying contract interactions and reducing context switching.
Alloy is already powering major projects like Foundry, Reth(https://github.com/paradigmxyz/reth), Arbitrum Stylus, OP Kona and many more. It's designed to be the performant and stable foundation for the Rust Ethereum ecosystem.