15 releases

0.4.8 Feb 15, 2024
0.4.6 Aug 24, 2023
0.4.5 Dec 21, 2022
0.4.1 Aug 25, 2022
0.3.1 Jul 3, 2022

#505 in Data structures

Download history 370/week @ 2023-12-23 1007/week @ 2023-12-30 878/week @ 2024-01-06 1120/week @ 2024-01-13 1136/week @ 2024-01-20 1661/week @ 2024-01-27 1747/week @ 2024-02-03 1692/week @ 2024-02-10 1856/week @ 2024-02-17 1673/week @ 2024-02-24 2186/week @ 2024-03-02 2132/week @ 2024-03-09 3125/week @ 2024-03-16 3556/week @ 2024-03-23 3817/week @ 2024-03-30 3687/week @ 2024-04-06

14,577 downloads per month
Used in 48 crates (2 directly)

MIT/Apache

32KB
906 lines

Lexical JSON number types

CI Crate informations License Documentation

This is a simple library for parsing and storing JSON numbers according to the JSON specification. It provides two types, the unsized Number type acting like str, and the NumberBuf<B> type owning the data inside the B type (by default String). By enabling the smallnumberbuf feature, the SmallNumberBuf<LEN> type is defined as NumberBuf<SmallVec<[u8; LEN]>> (where LEN=8 by default).

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2MB
~34K SLoC