3 unstable releases

0.2.1 Apr 23, 2023
0.1.1 Feb 3, 2023
0.1.0 Feb 3, 2023

#73 in #arg

MIT license

11KB
278 lines

CLIs (especially those designed to be called by automation) often take structured data as inputs. This ends up creating a ton of boilerplate where a CLI arg is declared as a [PathBuf] and then is quickly opened, read from and deserialized with some [serde] format crate. This crate provides two newtype wrappers ([Serde] and [SerdeFile]) that can deserialize any Serde-compatible arguments with no extra effort.

Dependencies

~0.8–1.7MB
~37K SLoC