#near #units #parser #gas #displaying

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

#21 in #gas

Download history 214/week @ 2023-11-28 145/week @ 2023-12-05 177/week @ 2023-12-12 225/week @ 2023-12-19 92/week @ 2023-12-26 133/week @ 2024-01-02 226/week @ 2024-01-09 145/week @ 2024-01-16 182/week @ 2024-01-23 84/week @ 2024-01-30 152/week @ 2024-02-06 200/week @ 2024-02-13 244/week @ 2024-02-20 197/week @ 2024-02-27 166/week @ 2024-03-05 168/week @ 2024-03-12

810 downloads per month
Used in 6 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
~97K SLoC