Crates.io | alloy-core |
lib.rs | alloy-core |
version | |
source | src |
created_at | 2022-11-11 04:36:45.227758 |
updated_at | 2024-12-09 12:44:44.833484 |
description | Rust Ethereum core libraries |
homepage | https://github.com/alloy-rs/core/tree/main/crates/core |
repository | https://github.com/alloy-rs/core |
max_upload_size | |
id | 712666 |
Cargo.toml error: | TOML parse error at line 20, column 1 | 20 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.
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
- The sol!
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 parserThe 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.
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.
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.
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.
None of these crates would have been possible without the great work done in: