#near #units #parser #gas #displaying

near-units-core

Core Rust library for parsing and displaying NEAR units

2 unstable releases

0.2.0 Oct 15, 2021
0.1.0 Oct 5, 2021

#31 in #gas

Download history 200/week @ 2024-02-27 171/week @ 2024-03-05 187/week @ 2024-03-12 215/week @ 2024-03-19 205/week @ 2024-03-26 186/week @ 2024-04-02 155/week @ 2024-04-09 175/week @ 2024-04-16 173/week @ 2024-04-23 182/week @ 2024-04-30 130/week @ 2024-05-07 187/week @ 2024-05-14 159/week @ 2024-05-21 173/week @ 2024-05-28 140/week @ 2024-06-04 104/week @ 2024-06-11

622 downloads per month
Used in 8 crates (2 directly)

GPL-3.0 license

10KB
236 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

~2.5–3.5MB
~63K SLoC