Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 12 additions & 33 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,19 @@ edition = "2018"
[badges]
maintenance = { status = "actively-developed" }

[features]
default = ["toml", "json", "yaml", "ini", "ron", "json5"]
json = ["serde_json"]
yaml = ["yaml-rust"]
ini = ["rust-ini"]
json5 = ["json5_rs"]
preserve_order = ["indexmap", "toml/preserve_order", "serde_json/preserve_order", "ron/indexmap"]

[dependencies]
async-trait = "0.1.50"
lazy_static = "1.0"
serde = "1.0.8"
nom = "7"
serde = { version = "1.0.8", features = ["derive"] }
thiserror = "1"
url = "2.2"

toml = { version = "0.5", optional = true }
async-trait = { version = "0.1", optional = true }
itertools = { version = "0.10", optional = true }
futures = { version = "0.3", optional = true }
serde_json = { version = "1.0.2", optional = true }
yaml-rust = { version = "0.4", optional = true }
rust-ini = { version = "0.18", optional = true }
ron = { version = "0.7", optional = true }
json5_rs = { version = "0.4", optional = true, package = "json5" }
indexmap = { version = "1.7.0", features = ["serde-1"], optional = true}
pathdiff = "0.2"

[dev-dependencies]
serde_derive = "1.0.8"
float-cmp = "0.9"
chrono = { version = "0.4", features = ["serde"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "io-util", "time"]}
warp = "=0.3.1"
futures = "0.3.15"
reqwest = "0.11.10"
toml = { version = "0.5", optional = true }

serde = "1.0"
glob = "0.3"
lazy_static = "1"
notify = "^4.0.0"
temp-env = "0.2.0"
[features]
default = ["json", "toml"]
json = ["serde_json"]
toml = ["dep:toml"]
async = ["async-trait", "futures", "itertools"]
74 changes: 0 additions & 74 deletions examples/async_source/main.rs

This file was deleted.

50 changes: 0 additions & 50 deletions examples/custom_format/main.rs

This file was deleted.

25 changes: 0 additions & 25 deletions examples/env-list/main.rs

This file was deleted.

1 change: 0 additions & 1 deletion examples/glob/conf/00-default.toml

This file was deleted.

2 changes: 0 additions & 2 deletions examples/glob/conf/05-some.yml

This file was deleted.

5 changes: 0 additions & 5 deletions examples/glob/conf/99-extra.json

This file was deleted.

66 changes: 0 additions & 66 deletions examples/glob/main.rs

This file was deleted.

23 changes: 0 additions & 23 deletions examples/global/main.rs

This file was deleted.

17 changes: 0 additions & 17 deletions examples/hierarchical-env/config/default.toml

This file was deleted.

4 changes: 0 additions & 4 deletions examples/hierarchical-env/config/development.toml

This file was deleted.

13 changes: 0 additions & 13 deletions examples/hierarchical-env/config/production.toml

This file was deleted.

10 changes: 0 additions & 10 deletions examples/hierarchical-env/main.rs

This file was deleted.

Loading