mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-14 02:21:21 +00:00
feat: migrate to quick-protobuf
Instead of relying on `protoc` and buildscripts, we generate the bindings using `pb-rs` and version them within our codebase. This makes for a better IDE integration, a faster build and an easier use of `rust-libp2p` because we don't force the `protoc` dependency onto them. Resolves #3024. Pull-Request: #3312.
This commit is contained in:
@ -100,7 +100,7 @@ pub enum HandlerError {
|
||||
#[error("Protocol negotiation failed.")]
|
||||
NegotiationProtocolError(ProtocolError),
|
||||
#[error("Failed to encode or decode")]
|
||||
Codec(#[from] prost_codec::Error),
|
||||
Codec(#[from] quick_protobuf_codec::Error),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
@ -136,7 +136,7 @@ impl std::error::Error for ValidationError {}
|
||||
|
||||
impl From<std::io::Error> for HandlerError {
|
||||
fn from(error: std::io::Error) -> HandlerError {
|
||||
HandlerError::Codec(prost_codec::Error::from(error))
|
||||
HandlerError::Codec(quick_protobuf_codec::Error::from(error))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user