13 releases

0.4.6 Aug 24, 2023
0.4.5 Dec 21, 2022
0.4.1 Aug 25, 2022
0.3.1 Jul 3, 2022
0.1.0 Jun 29, 2022

#419 in Data structures

Download history 1641/week @ 2023-07-06 910/week @ 2023-07-13 1153/week @ 2023-07-20 903/week @ 2023-07-27 1012/week @ 2023-08-03 934/week @ 2023-08-10 744/week @ 2023-08-17 852/week @ 2023-08-24 592/week @ 2023-08-31 931/week @ 2023-09-07 998/week @ 2023-09-14 1429/week @ 2023-09-21 1124/week @ 2023-09-28 967/week @ 2023-10-05 1151/week @ 2023-10-12 1121/week @ 2023-10-19

4,621 downloads per month
Used in 32 crates (via json-syntax)

MIT/Apache

27KB
751 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