2 stable releases

1.1.0 Nov 20, 2022
1.0.0 Sep 18, 2022

#19 in #u256

Download history 2/week @ 2024-11-13 9/week @ 2024-11-20 11/week @ 2024-11-27 13/week @ 2024-12-04 23/week @ 2024-12-11 7/week @ 2024-12-18 22/week @ 2025-01-01 13/week @ 2025-01-15 3/week @ 2025-01-29 13/week @ 2025-02-05 8/week @ 2025-02-12 22/week @ 2025-02-19 18/week @ 2025-02-26

62 downloads per month

MIT/Apache

22KB
556 lines

ethnum-macros

This crate provides procedural macros for compile-time 256-bit integer literals.

assert_eq!(ethnum::int!("42") == 42);

Usage

This is typically not used directly, but instead included with ethnum:

[dependencies]
ethnum = { version = "*", features = ["macros"] }

lib.rs:

Procedural macro for 256-bit integer literals.

See ethnum::int and ethnum::uint documentation for more information.

No runtime deps