#tuple #comma #urlencoded #sequence #serde

comma_serde_urlencoded

serde_urlencoded with support for serialization and deserialization of sequences and tuples in comma separated format

7 releases

0.8.1 Sep 14, 2022
0.8.0 Sep 14, 2022
0.7.6 Sep 11, 2022

#876 in Encoding

Download history 100/week @ 2024-04-22 44/week @ 2024-04-29 40/week @ 2024-05-06 35/week @ 2024-05-13 47/week @ 2024-05-20 58/week @ 2024-05-27 49/week @ 2024-06-03 37/week @ 2024-06-10 33/week @ 2024-06-17 23/week @ 2024-06-24 24/week @ 2024-07-01 47/week @ 2024-07-08 28/week @ 2024-07-15 92/week @ 2024-07-22 84/week @ 2024-07-29 61/week @ 2024-08-05

266 downloads per month
Used in 6 crates (5 directly)

MIT/Apache

49KB
1.5K SLoC

comma_serde_urlencoded

serde_urlencoded with support for serialization and deserialization of sequences and tuples in comma separated format.

Installation

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

[dependencies]
comma_serde_urlencoded = "0.8"

The documentation is available on docs.rs.

Example

let meal = &(
    ("bread", ["baguette", "strucia"]),
    ("cheese", vec!["comté", "cheddar"]),
    ("meat", ("ham", "becon")),
    ("fat", "butter"),
);

assert_eq!(
    comma_serde_urlencoded::to_string(meal),
    Ok("bread=baguette%2Cstrucia&cheese=comt%C3%A9%2Ccheddar&meat=ham%2Cbecon&fat=butter".to_owned())
);

License

comma_serde_urlencoded is licensed under either of

at your option.

Contribution

serde_urlencoded licenses

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

Dependencies

~175–445KB