#solidity #abi #ethereum

no-std linera-alloy-core

Rust Ethereum core libraries

1 unstable release

0.7.4 May 30, 2024

#78 in #solidity

Download history 41/week @ 2024-06-20 46/week @ 2024-06-27 32/week @ 2024-07-04 66/week @ 2024-07-11 63/week @ 2024-07-18 114/week @ 2024-07-25 67/week @ 2024-08-01 114/week @ 2024-08-08 104/week @ 2024-08-15 60/week @ 2024-08-22 99/week @ 2024-08-29 218/week @ 2024-09-05 228/week @ 2024-09-12 312/week @ 2024-09-19 183/week @ 2024-09-26 157/week @ 2024-10-03

931 downloads per month
Used in 5 crates (via linera-alloy)

MIT/Apache

520KB
11K 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.

ethers-rs will continue to be maintained until we have achieved feature-parity in Alloy. No action is currently needed from devs.

Build Status Telegram chat

Overview

This repository contains the following crates:

Supported Rust Versions

Alloy will keep a rolling MSRV (minimum supported rust version) policy of at least 6 months. When increasing the MSRV, the new Rust version must have been released at least six months ago. The current MSRV is 1.65.0.

Note that the MSRV is not increased automatically, and only as part of a minor 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 linera-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

~3.5–7MB
~140K SLoC