37 releases

0.13.0 Apr 7, 2024
0.12.0 Mar 2, 2023
0.11.0 Jan 7, 2023
0.10.1 Jul 13, 2022
0.0.2 Mar 20, 2017

#1177 in Encoding

Download history 213741/week @ 2024-03-14 216455/week @ 2024-03-21 223287/week @ 2024-03-28 221764/week @ 2024-04-04 231761/week @ 2024-04-11 235861/week @ 2024-04-18 222351/week @ 2024-04-25 230793/week @ 2024-05-02 227179/week @ 2024-05-09 251649/week @ 2024-05-16 251489/week @ 2024-05-23 261993/week @ 2024-05-30 274267/week @ 2024-06-06 255556/week @ 2024-06-13 251077/week @ 2024-06-20 221055/week @ 2024-06-27

1,055,568 downloads per month
Used in 1,420 crates (206 directly)

MIT/Apache

100KB
2K SLoC

Serde Querystrings badge-ci Latest Version Documentation

This crate is a Rust library for serialising to and deserialising from querystrings. This crate is designed to extend serde_urlencoded when using nested parameters, similar to those used by qs for Node, and commonly used by Ruby on Rails via Rack.

The core of the library was inspired by serde_urlencoded. In order to support abitrarily nested structs encoded in arbitrary orders, we perform two passes over the input string. This likely adds a non-trivial amount of memory and compute. Due to this serde_urlencoded should be preferred over this crate whenever non-nested query parameters are sufficient. The crate is built upon Serde, a high performance generic serialization framework and rust-url, a URL parser for Rust.

Installation

This crate works with Cargo and can be found on crates.io with a Cargo.toml like:

[dependencies]
serde_qs = "0.12"

Minimum supported Rust version is 1.36.

License

serde_qs is licensed under either of

at your option.

Contribution

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

Dependencies

~0.4–14MB
~173K SLoC