alloy-rs/core
alloy-rs/core has 970 GitHub stars and 283 forks. Star changes are not measured yet. Last checked 2026-11-14 12:53 UTC. Last push 2026-11-13.
实测星标增长
- 24小时
- 正在收集历史
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
High-performance, well-tested & documented core libraries for Ethereum, in Rust
开发工具README.md
原文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.
Overview
This repository contains the following crates:
alloy-core: Meta-crate for the entire projectalloy-primitives- Primitive integer and byte typesalloy-sol-types- Compile-time ABI and EIP-712 implementationsalloy-sol-macro- Thesol!procedural macroalloy-dyn-abi- Run-time ABI and EIP-712 implementationsalloy-json-abi- Full Ethereum JSON-ABI implementationalloy-sol-type-parser- A simple parser for Solidity type stringssyn-solidity-syn-powered Solidity parser
Supported Rust Versions (MSRV)
The current MSRV (minimum supported rust version) is 1.85.
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 "wasm_js" feature enabled:
getrandom = { version = "0.4", features = ["wasm_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.