Crates.io | alloy |
lib.rs | alloy |
version | |
source | src |
created_at | 2023-12-18 09:05:17.65918 |
updated_at | 2024-12-10 11:23:30.848786 |
description | Connect applications to blockchains |
homepage | https://github.com/alloy-rs/alloy |
repository | https://github.com/alloy-rs/alloy |
max_upload_size | |
id | 1073210 |
Cargo.toml error: | TOML parse error at line 23, column 1 | 23 | 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 |
Alloy connects applications to blockchains.
Alloy is a rewrite of ethers-rs
from the ground up, with exciting new
features, high performance, and excellent docs.
We also have a book on all things Alloy and many examples to help you get started.
Alloy consists of a number of crates that provide a range of functionality essential for interfacing with any Ethereum-based blockchain.
The easiest way to get started is to add the alloy
crate with the full
feature flag from the command-line using Cargo:
cargo add alloy --features full
Alternatively, you can add the following to your Cargo.toml
file:
alloy = { version = "0.3", features = ["full"] }
For a more fine-grained control over the features you wish to include, you can add the individual crates to your Cargo.toml
file, or use the alloy
crate with the features you need.
A comprehensive list of available features can be found on docs.rs or in the alloy
crate's Cargo.toml
.
This repository contains the following crates:
alloy
: Meta-crate for the entire project, including alloy-core
alloy-consensus
- Ethereum consensus interface
alloy-consensus-any
- Catch-all consensus interface for multiple networksalloy-contract
- Interact with on-chain contractsalloy-eips
- Ethereum Improvement Proposal (EIP) implementationsalloy-genesis
- Ethereum genesis file definitionsalloy-json-rpc
- Core data types for JSON-RPC 2.0 clientsalloy-network
- Network abstraction for RPC types
alloy-network-primitives
- Primitive types for the network abstractionalloy-node-bindings
- Ethereum execution-layer client bindingsalloy-provider
- Interface with an Ethereum blockchainalloy-pubsub
- Ethereum JSON-RPC publish-subscribe tower service and type definitionsalloy-rpc-client
- Low-level Ethereum JSON-RPC client implementationalloy-rpc-types
- Meta-crate for all Ethereum JSON-RPC types
alloy-rpc-types-admin
- Types for the admin
Ethereum JSON-RPC namespacealloy-rpc-types-anvil
- Types for the Anvil development node's Ethereum JSON-RPC namespacealloy-rpc-types-any
- Types for JSON-RPC namespaces across multiple networksalloy-rpc-types-beacon
- Types for the Ethereum Beacon Node APIalloy-rpc-types-debug
- Types for the debug
Ethereum JSON-RPC namespacealloy-rpc-types-engine
- Types for the engine
Ethereum JSON-RPC namespacealloy-rpc-types-eth
- Types for the eth
Ethereum JSON-RPC namespacealloy-rpc-types-mev
- Types for the MEV bundle JSON-RPC namespacealloy-rpc-types-trace
- Types for the trace
Ethereum JSON-RPC namespacealloy-rpc-types-txpool
- Types for the txpool
Ethereum JSON-RPC namespacealloy-serde
- Serde-related utilitiesalloy-signer
- Ethereum signer abstraction
alloy-signer-aws
- AWS KMS signer implementationalloy-signer-gcp
- GCP KMS signer implementationalloy-signer-ledger
- Ledger signer implementationalloy-signer-local
- Local (private key, keystore, mnemonic, YubiHSM) signer implementationsalloy-signer-trezor
- Trezor signer implementationalloy-transport
- Low-level Ethereum JSON-RPC transport abstraction
alloy-transport-http
- HTTP transport implementationalloy-transport-ipc
- IPC transport implementationalloy-transport-ws
- WS transport implementationThe 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.
no_std
Because these crates are primarily network-focused, we do not intend to support
no_std
for most of them at this time.
The following crates support no_std
:
If you would like to add no_std
support to a crate, please make sure to update
scripts/check_no_std.sh
as well.
None of these crates would have been possible without the great work done in: