36 releases

new 0.8.15 Dec 9, 2024
0.8.14 Nov 28, 2024
0.8.10 Oct 28, 2024
0.7.7 Jul 8, 2024
0.0.10 Nov 11, 2022

#5 in #eip-712

Download history 13728/week @ 2024-08-25 17267/week @ 2024-09-01 17336/week @ 2024-09-08 15225/week @ 2024-09-15 18620/week @ 2024-09-22 20045/week @ 2024-09-29 24661/week @ 2024-10-06 27233/week @ 2024-10-13 26470/week @ 2024-10-20 27506/week @ 2024-10-27 26197/week @ 2024-11-03 21289/week @ 2024-11-10 22644/week @ 2024-11-17 24186/week @ 2024-11-24 28193/week @ 2024-12-01 40573/week @ 2024-12-08

116,563 downloads per month
Used in 121 crates (2 directly)

MIT/Apache

1MB
23K SLoC

Alloy

Core libraries at the root of the Rust Ethereum ecosystem.

Alloy is a rewrite of ethers-rs from the ground up, with exciting new features, high performance, and excellent docs.

We have a book on all things Alloy and many examples to help you get started.

ethers-rs has been deprecated, and users are recommended to migrate to Alloy.

Build Status Telegram chat

Overview

This repository contains the following crates:

Supported Rust Versions (MSRV)

The current MSRV (minimum supported rust version) is 1.81.

Alloy will keep a rolling MSRV policy of at least two versions behind the latest stable release (so if the latest stable release is 1.58, we would support 1.56).

Note that the MSRV is not increased automatically, and only as part of a patch (pre-1.0) or minor (post-1.0) release.

Contributing

Thanks for your help improving the project! We are so happy to have you! We have a contributing guide to help you get involved in the Alloy project.

Pull requests will not be merged unless CI passes, so please ensure that your contribution follows the linting rules and passes clippy.

WASM support

We provide full support for all the wasm*-* targets. If a crate does not build on a WASM target, please open an issue.

When building for the wasm32-unknown-unknown target and the "getrandom" feature is enabled, compilation for the getrandom crate will fail. This is expected: see their documentation for more details.

To fix this, either disable the "getrandom" feature on alloy-core or add getrandom to your dependencies with the "js" feature enabled:

getrandom = { version = "0.2", features = ["js"] }

There is currently no plan to provide an official JS/TS-accessible library interface, as we believe viem or ethers.js serve that need very well.

Note on no_std

All crates in this workspace should support no_std environments, with the alloc crate. If you find a crate that does not support no_std, please open an issue.

Credits

None of these crates would have been possible without the great work done in:

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in these crates by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~6–9MB
~168K SLoC