chore(config): only support toml and yaml formats

This commit is contained in:
orhun 2021-07-24 20:48:15 +03:00
parent d538e591ef
commit ee760529a3
No known key found for this signature in database
GPG key ID: F83424824B3E4B90
2 changed files with 17 additions and 58 deletions

69
Cargo.lock generated
View file

@ -96,7 +96,7 @@ dependencies = [
"pin-project 1.0.7", "pin-project 1.0.7",
"rand 0.7.3", "rand 0.7.3",
"regex", "regex",
"serde 1.0.126", "serde",
"serde_json", "serde_json",
"serde_urlencoded", "serde_urlencoded",
"sha-1", "sha-1",
@ -152,7 +152,7 @@ dependencies = [
"http", "http",
"log", "log",
"regex", "regex",
"serde 1.0.126", "serde",
] ]
[[package]] [[package]]
@ -302,7 +302,7 @@ dependencies = [
"mime", "mime",
"pin-project 1.0.7", "pin-project 1.0.7",
"regex", "regex",
"serde 1.0.126", "serde",
"serde_json", "serde_json",
"serde_urlencoded", "serde_urlencoded",
"socket2", "socket2",
@ -390,7 +390,7 @@ dependencies = [
"mime", "mime",
"percent-encoding", "percent-encoding",
"rand 0.7.3", "rand 0.7.3",
"serde 1.0.126", "serde",
"serde_json", "serde_json",
"serde_urlencoded", "serde_urlencoded",
] ]
@ -463,7 +463,7 @@ version = "4.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "063197e6eb4b775b64160dedde7a0986bb2836cce140e9492e9e96f28e18bcd8" checksum = "063197e6eb4b775b64160dedde7a0986bb2836cce140e9492e9e96f28e18bcd8"
dependencies = [ dependencies = [
"serde 1.0.126", "serde",
"utf8-width", "utf8-width",
] ]
@ -531,10 +531,7 @@ checksum = "1b1b9d958c2b1368a663f05538fc1b5975adce1e19f435acceae987aceeeb369"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"nom 5.1.2", "nom 5.1.2",
"rust-ini", "serde",
"serde 1.0.126",
"serde-hjson",
"serde_json",
"toml", "toml",
"yaml-rust", "yaml-rust",
] ]
@ -1200,24 +1197,6 @@ dependencies = [
"winapi 0.3.9", "winapi 0.3.9",
] ]
[[package]]
name = "num-traits"
version = "0.1.43"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92e5113e9fd4cc14ded8e499429f396a20f98c772a47cc8622a736e1ec843c31"
dependencies = [
"num-traits 0.2.14",
]
[[package]]
name = "num-traits"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
dependencies = [
"autocfg",
]
[[package]] [[package]]
name = "num_cpus" name = "num_cpus"
version = "1.13.0" version = "1.13.0"
@ -1508,12 +1487,6 @@ dependencies = [
"quick-error", "quick-error",
] ]
[[package]]
name = "rust-ini"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e52c148ef37f8c375d49d5a73aa70713125b7f19095948a923f80afdeb22ec2"
[[package]] [[package]]
name = "rustc_version" name = "rustc_version"
version = "0.2.3" version = "0.2.3"
@ -1549,7 +1522,7 @@ dependencies = [
"log", "log",
"petname", "petname",
"rand 0.8.4", "rand 0.8.4",
"serde 1.0.126", "serde",
] ]
[[package]] [[package]]
@ -1597,12 +1570,6 @@ dependencies = [
"pest", "pest",
] ]
[[package]]
name = "serde"
version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9dad3f759919b92c3068c696c15c3d17238234498bbdcc80f2c469606f948ac8"
[[package]] [[package]]
name = "serde" name = "serde"
version = "1.0.126" version = "1.0.126"
@ -1612,18 +1579,6 @@ dependencies = [
"serde_derive", "serde_derive",
] ]
[[package]]
name = "serde-hjson"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a3a4e0ea8a88553209f6cc6cfe8724ecad22e1acf372793c27d995290fe74f8"
dependencies = [
"lazy_static",
"num-traits 0.1.43",
"regex",
"serde 0.8.23",
]
[[package]] [[package]]
name = "serde_derive" name = "serde_derive"
version = "1.0.126" version = "1.0.126"
@ -1643,7 +1598,7 @@ checksum = "799e97dc9fdae36a5c8b8f2cae9ce2ee9fdce2058c57a93e6099d919fd982f79"
dependencies = [ dependencies = [
"itoa", "itoa",
"ryu", "ryu",
"serde 1.0.126", "serde",
] ]
[[package]] [[package]]
@ -1655,7 +1610,7 @@ dependencies = [
"form_urlencoded", "form_urlencoded",
"itoa", "itoa",
"ryu", "ryu",
"serde 1.0.126", "serde",
] ]
[[package]] [[package]]
@ -1746,7 +1701,7 @@ checksum = "c87a60a40fccc84bef0652345bbbbbe20a605bf5d0ce81719fc476f5c03b50ef"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
"serde 1.0.126", "serde",
"serde_derive", "serde_derive",
"syn", "syn",
] ]
@ -1760,7 +1715,7 @@ dependencies = [
"base-x", "base-x",
"proc-macro2", "proc-macro2",
"quote", "quote",
"serde 1.0.126", "serde",
"serde_derive", "serde_derive",
"serde_json", "serde_json",
"sha1", "sha1",
@ -1940,7 +1895,7 @@ version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa"
dependencies = [ dependencies = [
"serde 1.0.126", "serde",
] ]
[[package]] [[package]]

View file

@ -13,11 +13,15 @@ env_logger = "0.9.0"
log = "0.4.14" log = "0.4.14"
serde = "1.0.126" serde = "1.0.126"
futures-util = "0.3.15" futures-util = "0.3.15"
config = "0.11.0"
petname = "1.1.0" petname = "1.1.0"
rand = "0.8.4" rand = "0.8.4"
dotenv = "0.15.0" dotenv = "0.15.0"
[dependencies.config]
version = "0.11.0"
default-features = false
features = ["toml", "yaml"]
[dependencies.byte-unit] [dependencies.byte-unit]
version = "4.0.12" version = "4.0.12"
features = ["serde"] features = ["serde"]