#near #units #parser #string #gas #literals #string-literal

macro near-units-macro

Macro for parsing strings literals of NEAR units

2 unstable releases

0.2.0 Oct 15, 2021
0.1.0 Oct 5, 2021

#28 in #gas

Download history 207/week @ 2024-03-24 191/week @ 2024-03-31 148/week @ 2024-04-07 192/week @ 2024-04-14 152/week @ 2024-04-21 198/week @ 2024-04-28 122/week @ 2024-05-05 167/week @ 2024-05-12 165/week @ 2024-05-19 170/week @ 2024-05-26 172/week @ 2024-06-02 86/week @ 2024-06-09 146/week @ 2024-06-16 192/week @ 2024-06-23 93/week @ 2024-06-30 60/week @ 2024-07-07

508 downloads per month
Used in 7 crates (via near-units)

GPL-3.0 license

12KB
270 lines

NEAR Units

Note: It is recommended to use near-gas and near-token crates instead of near-units, as those crates provide strict type wrappers, const constructors, and overall extremely lightweight.

Rust tools to help parse and format NEAR units. For now, this means NEAR tokens and gas units.

Install

near-units="0.1.0"

Parsing strings

Dependencies

~3.5–5MB
~98K SLoC