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

#421 in Data structures

Download history 1061/week @ 2024-01-19 1468/week @ 2024-01-26 1888/week @ 2024-02-02 1607/week @ 2024-02-09 2001/week @ 2024-02-16 1586/week @ 2024-02-23 2257/week @ 2024-03-01 2011/week @ 2024-03-08 2962/week @ 2024-03-15 3759/week @ 2024-03-22 3472/week @ 2024-03-29 4381/week @ 2024-04-05 5347/week @ 2024-04-12 5153/week @ 2024-04-19 4686/week @ 2024-04-26 5408/week @ 2024-05-03

21,590 downloads per month
Used in 50 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