address-literal

Crates.ioaddress-literal
lib.rsaddress-literal
version1.2.4
sourcesrc
created_at2021-07-04 03:04:33.691778
updated_at2023-10-11 14:27:46.344518
descriptionProcedural macro for converting Address(H160) literals to Address(H160) at compile time.
homepage
repository
max_upload_size
id418427
size2,511
Rust (github:microsoft:rust)

documentation

README

This crate simplifies the initialization of const variable by using addr!() macro. It expects a string literal. See following example:

use address_literal::addr;

const BOT: H160 = addr!("0x0000000279be4c78d026d348651e26f3fcc8cf90");
Commit count: 0

cargo fmt