Registry / crypto / alloy-primitives

alloy-primitives

JSON →
library1.5.7rscratesunverified

Ethereum primitive types for use in Rust applications.

# Cargo.toml [dependencies] alloy-primitives = "1.5.7"
INSTALL
IMPORT
SIG · ALLOY-PRIMITIVES
A
alloy-primitives
cryptorustv1.5.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Address
use alloy_primitives::Address;

Parse an Ethereum address from a hex string.

use alloy_primitives::Address; let addr: Address = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045".parse().unwrap(); println!("{}", addr);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
35
Resources
alloy-primitives — cargo add alloy-primitives · libregistry