#printing

near-units

Rust library for parsing and displaying NEAR units

2 unstable releases

0.2.0 Oct 15, 2021
0.1.0 Oct 5, 2021

#166 in #printing

Download history 132/week @ 2024-07-20 142/week @ 2024-07-27 121/week @ 2024-08-03 194/week @ 2024-08-10 140/week @ 2024-08-17 144/week @ 2024-08-24 160/week @ 2024-08-31 183/week @ 2024-09-07 114/week @ 2024-09-14 148/week @ 2024-09-21 92/week @ 2024-09-28 92/week @ 2024-10-05 229/week @ 2024-10-12 146/week @ 2024-10-19 275/week @ 2024-10-26 281/week @ 2024-11-02

961 downloads per month
Used in 5 crates

GPL-3.0 license

12KB
258 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
~101K SLoC