Merge branch 'develop' into feature-proxy
This commit is contained in:
commit
aa329c019a
4 changed files with 10 additions and 11 deletions
|
@ -43,8 +43,8 @@ log = "0.4"
|
|||
native-tls = "0.2"
|
||||
serde = { version = "1.0", features = ["derive"], optional = true }
|
||||
serde_derive = { version = "1.0", optional = true }
|
||||
tokio = { version = "0.2.4", features = ["time", "net", "stream", "macros", "stream"] }
|
||||
tokio-util = { version = "0.2.0", features = ["codec"] }
|
||||
tokio = { version = "0.2.4", features = ["time", "net", "stream", "macros"] }
|
||||
tokio-util = { version = "0.3.0", features = ["codec"] }
|
||||
tokio-socks = { version = "0.2.0", optional = true }
|
||||
tokio-tls = "0.3.0"
|
||||
serde_json = { version = "1.0", optional = true }
|
||||
|
|
|
@ -14,11 +14,12 @@ edition = "2018"
|
|||
travis-ci = { repository = "aatxe/irc" }
|
||||
|
||||
[features]
|
||||
default = ["tokio", "tokio-util", "bytes"]
|
||||
default = ["bytes", "tokio", "tokio-util"]
|
||||
|
||||
[dependencies]
|
||||
bytes = { version = "0.5", optional = true }
|
||||
encoding = "0.2"
|
||||
thiserror = "1.0.2"
|
||||
tokio-util = { version = "0.2.0", features = ["codec"], optional = true }
|
||||
encoding = "0.2.0"
|
||||
thiserror = "1.0.0"
|
||||
|
||||
bytes = { version = "0.5.0", optional = true }
|
||||
tokio = { version = "0.2.0", optional = true }
|
||||
tokio-util = { version = "0.3.0", features = ["codec"], optional = true }
|
||||
|
|
|
@ -44,8 +44,7 @@ impl Decoder for IrcCodec {
|
|||
}
|
||||
}
|
||||
|
||||
impl Encoder for IrcCodec {
|
||||
type Item = Message;
|
||||
impl Encoder<Message> for IrcCodec {
|
||||
type Error = error::ProtocolError;
|
||||
|
||||
fn encode(&mut self, msg: Message, dst: &mut BytesMut) -> error::Result<()> {
|
||||
|
|
|
@ -63,8 +63,7 @@ impl Decoder for LineCodec {
|
|||
}
|
||||
}
|
||||
|
||||
impl Encoder for LineCodec {
|
||||
type Item = String;
|
||||
impl Encoder<String> for LineCodec {
|
||||
type Error = error::ProtocolError;
|
||||
|
||||
fn encode(&mut self, msg: String, dst: &mut BytesMut) -> error::Result<()> {
|
||||
|
|
Loading…
Reference in a new issue