summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorRaphael Cohn <raphael.cohn@stormmq.com>2017-09-01 09:06:27 +0100
committerRaphael Cohn <raphael.cohn@stormmq.com>2017-09-01 09:06:27 +0100
commit9826b2cda730116e148120dafe0fa89bd389626e (patch)
tree164597d8e40017ca690c259c75eacee9134f6f5d /README.md
parent13151213a7b368296c616e0a770fb2c238fff1a0 (diff)
Added HJSON (Human-Readable JSON) as a config file format
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 066e68e..9beaac6 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
- Set defaults
- Set explicit values (to programmatically override)
- - Read from [JSON], [TOML], and [YAML] files
+ - Read from [JSON], [TOML], [YAML] and [HJSON] 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` )
@@ -18,6 +18,7 @@
[JSON]: https://github.com/serde-rs/json
[TOML]: https://github.com/toml-lang/toml
[YAML]: https://github.com/chyh1990/yaml-rust
+[HJSON]: https://github.com/hjson/hjson-rust
## Usage
@@ -27,6 +28,7 @@ config = "0.6"
```
- `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 (included by default)