#units #near #parser #gas #displaying #near-units

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

#25 in #gas

Download history 119/week @ 2024-07-21 151/week @ 2024-07-28 137/week @ 2024-08-04 199/week @ 2024-08-11 131/week @ 2024-08-18 159/week @ 2024-08-25 177/week @ 2024-09-01 179/week @ 2024-09-08 119/week @ 2024-09-15 161/week @ 2024-09-22 96/week @ 2024-09-29 80/week @ 2024-10-06 242/week @ 2024-10-13 171/week @ 2024-10-20 325/week @ 2024-10-27 261/week @ 2024-11-03

1,002 downloads per month
Used in 7 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
~65K SLoC