#configuration #spirit #ux

spirit-cfg-helpers

Helpers for spirit to make interacting with configuration more smooth for the user

3 unstable releases

✓ Uses Rust 2018 edition

0.2.0 Feb 20, 2019
0.1.1 Dec 26, 2018
0.1.0 Dec 26, 2018

#52 in Configuration

Download history 29/week @ 2019-04-27 28/week @ 2019-05-04 13/week @ 2019-05-11 13/week @ 2019-05-18 35/week @ 2019-05-25 15/week @ 2019-06-01 4/week @ 2019-06-08 1/week @ 2019-06-15 54/week @ 2019-06-22 15/week @ 2019-06-29 61/week @ 2019-07-06 3/week @ 2019-07-13 10/week @ 2019-07-27 24/week @ 2019-08-03

125 downloads per month
Used in 1 crate

Apache-2.0/MIT

235KB
3K SLoC

Spirit-hyper

Travis Build Status

A helper to add the --help-config and --dump-config options to a spirit-based application. Some more useful helpers around configuration too.

See the docs.

License

Licensed under either of

at your option.

Contribution

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


lib.rs:

Spirit configuration helpers

These extensions are meant to integrate into the [spirit] configuration framework. They aim at making the user experience around application's configuration more smooth. Specifically, they allow dumping the configuration collected through all the config files and environment variables and printing help about all the configuration options the application accepts.

Features

By default, all features are turned on. However, it is possible to opt out of some to cut down on dependencies. Specifically:

  • toml and json features enable dumping in the respective formats.
  • cfg-help enables the printing of configuration help.

Dependencies

~5.5MB
~102K SLoC