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

#363 in Data structures

Download history 6271/week @ 2024-10-30 4990/week @ 2024-11-06 4836/week @ 2024-11-13 6022/week @ 2024-11-20 5543/week @ 2024-11-27 6311/week @ 2024-12-04 5946/week @ 2024-12-11 5724/week @ 2024-12-18 3293/week @ 2024-12-25 4770/week @ 2025-01-01 6122/week @ 2025-01-08 6840/week @ 2025-01-15 9508/week @ 2025-01-22 6723/week @ 2025-01-29 7603/week @ 2025-02-05 6835/week @ 2025-02-12

31,959 downloads per month
Used in 97 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