mehcode/config-rs


⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).

License: Other

Language: Rust

Keywords: config, config-management, configuration, configuration-management, json, rust, toml


config-rs

Rust Build Status Crates.io Docs.rs

Layered configuration system for Rust applications (with strong support for 12-factor applications).

  • Set defaults
  • Set explicit values (to programmatically override)
  • Read from JSON, TOML, YAML, HJSON, INI files
  • Read from environment
  • Loosely typed — Configuration values may be read in any supported type, as long as there exists a reasonable conversion
  • Access nested fields using a formatted path — Uses a subset of JSONPath; currently supports the child ( redis.port ) and subscript operators ( databases[0].name )

Usage

[dependencies]
config = "0.9"
  • ini - Adds support for reading INI files
  • json - Adds support for reading JSON files
  • hjson - Adds support for reading HJSON files
  • yaml - Adds support for reading YAML files
  • toml - Adds support for reading TOML files

See the documentation or examples for more usage information.

License

config-rs is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.

Project Statistics

Sourcerank 13
Repository Size 254 KB
Stars 566
Forks 70
Watchers 14
Open issues 40
Dependencies 14
Contributors 27
Tags 13
Created
Last updated
Last pushed

Top Contributors See all

Ryan Leckey Christian Fochler Alexander Mescheryakov Aleksey Ivanov Mathieu Poumeyrol Kai Ren Eugeen Sablin Artem Biryukov nickelc Michal 'vorner' Vaner Anthony Ruhier Alex Widener Vasilii Novikov Fredrik Jonsén Indexyz Jascha gnieto Colin Rofls Phil Booth Thayne McCombs

Packages Referencing this Repo

config
Layered configuration system for Rust applications.
Latest release 0.10.0 - Updated - 566 stars

Recent Tags See all

0.9.3 May 09, 2019
0.9.2 January 03, 2019
0.9.1 September 26, 2018
0.9.0 July 02, 2018
0.8.0 January 26, 2018
0.7.1 January 26, 2018
0.7.0 August 05, 2017
0.6.0 June 23, 2017
0.5.1 June 16, 2017
0.5.0 June 16, 2017
0.4.1 February 12, 2017
0.4.0 February 12, 2017
v0.2.0 January 29, 2017

Something wrong with this page? Make a suggestion

Last synced: 2019-12-08 02:16:32 UTC

Login to resync this repository