2 stable releases

1.1.0 Nov 20, 2022
1.0.0 Sep 18, 2022

#27 in #u256

Download history 6/week @ 2025-09-11 12/week @ 2025-09-18 66/week @ 2025-09-25 17/week @ 2025-10-02 140/week @ 2025-10-09 40/week @ 2025-10-16 272/week @ 2025-10-23 515/week @ 2025-10-30 477/week @ 2025-11-06 94/week @ 2025-11-13 844/week @ 2025-11-20 110/week @ 2025-11-27 166/week @ 2025-12-04

166 downloads per month

MIT/Apache

22KB
556 lines

Procedural macro for 256-bit integer literals.

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


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"] }

No runtime deps