Added support for toml and yaml configurations.

This commit is contained in:
Aaron Weiss 2017-06-29 00:31:27 -07:00
parent a63dbb5422
commit c749146d5c
No known key found for this signature in database
GPG key ID: 0237035D9BF03AE2
6 changed files with 274 additions and 77 deletions

View file

@ -11,9 +11,11 @@ repository = "https://github.com/aatxe/irc"
readme = "README.md"
[features]
default = ["ctcp"]
default = ["ctcp", "json"]
ctcp = []
nochanlists = []
json = ["serde_json"]
yaml = ["serde_yaml"]
[dependencies]
bufstream = "0.1"
@ -25,9 +27,15 @@ futures = "0.1"
native-tls = "0.1"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
serde_json = { version = "1.0", optional = true }
serde_yaml = { version = "0.7", optional = true }
tokio-core = "0.1"
tokio-io = "0.1"
tokio-mockstream = "1.1"
tokio-timer = "0.1"
tokio-tls = "0.1"
toml = { version = "0.4", optional = true }
[dev-dependencies]
args = "2.0"
getopts = "0.2"