16 releases

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

#470 in Data structures

Download history 6039/week @ 2024-08-24 7121/week @ 2024-08-31 7250/week @ 2024-09-07 6729/week @ 2024-09-14 6509/week @ 2024-09-21 5770/week @ 2024-09-28 7871/week @ 2024-10-05 5960/week @ 2024-10-12 8307/week @ 2024-10-19 6530/week @ 2024-10-26 6135/week @ 2024-11-02 4423/week @ 2024-11-09 5403/week @ 2024-11-16 5570/week @ 2024-11-23 5840/week @ 2024-11-30 5634/week @ 2024-12-07

23,046 downloads per month
Used in 82 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
~36K SLoC