Daniel Verkamp 52b8e42869 Cargo.toml: avoid "*" versions for external crates před 5 měsíci
..
serde_keyvalue_derive 8aabb8d9c0 Update to syn-2 před 11 měsíci
src c28067d1d9 Reformat comments před 9 měsíci
Cargo.toml 52b8e42869 Cargo.toml: avoid "*" versions for external crates před 5 měsíci
README.md aa043e8c00 add serde_keyvalue crate před 2 roky

README.md

Serde deserializer from key=value strings

A lightweight serde deserializer for strings containing key-value pairs separated by commas, as commonly found in command-line parameters.

Say your program takes a command-line option of the form:

--foo type=bar,active,nb_threads=8

This crate provides a from_key_values function that deserializes these key-values into a configuration structure. Since it uses serde, the same configuration structure can also be created from any other supported source (such as a TOML or YAML configuration file) that uses the same keys.

Integration with the argh command-line parser is also provided via the argh_derive feature.

See the inline documentation for examples and more details.