Put the tokio codec (IrcCodec) behind a tokio feature.

This commit is contained in:
Aaron Weiss 2018-03-10 18:10:40 +01:00
parent 62fc67ce19
commit 3003d9bdcc
No known key found for this signature in database
GPG key ID: 047D32DF25DC22EF
2 changed files with 11 additions and 2 deletions

View file

@ -12,8 +12,12 @@ repository = "https://github.com/aatxe/irc"
[badges]
travis-ci = { repository = "aatxe/irc" }
[features]
default = ["tokio"]
tokio = ["tokio-io", "bytes"]
[dependencies]
bytes = "0.4"
bytes = { version = "0.4", optional = true }
encoding = "0.2"
failure = "0.1"
tokio-io = "0.1"
tokio-io = { version = "0.1", optional = true }