Name Date Size #Lines LOC

..--

serde_keyvalue_derive/H25-Apr-2025-7056

src/H25-Apr-2025-2,3041,539

Android.bpH A D25-Apr-20251.8 KiB7369

Cargo.tomlH A D25-Apr-2025525 2117

README.mdH A D25-Apr-2025773 2013

README.md

1# Serde deserializer from key=value strings
2
3A lightweight serde deserializer for strings containing key-value pairs separated by commas, as
4commonly found in command-line parameters.
5
6Say your program takes a command-line option of the form:
7
8```text
9--foo type=bar,active,nb_threads=8
10```
11
12This crate provides a `from_key_values` function that deserializes these key-values into a
13configuration structure. Since it uses serde, the same configuration structure can also be created
14from any other supported source (such as a TOML or YAML configuration file) that uses the same keys.
15
16Integration with the [argh](https://github.com/google/argh) command-line parser is also provided via
17the `argh_derive` feature.
18
19See the inline documentation for examples and more details.
20