mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-29 18:51:22 +00:00
Update protobuf to version 2.3.0 (#904)
Initially I had hoped that the deprecated `#![allow(clippy)]` would no longer be put into the generated rust files, but -- as of 2019-01-30 -- it still is (see [1] for details). Since we explicitly update the protobuf files I decided to *manually edit the generated code* and replace this with `#![allow(clippy:all)]`. Hopefully, by the time we do the next upgrade, no such manual tweaking would be necessary anymore. I think the benefit of a less polluted clippy output is worth it this time. [1]: https://github.com/stepancheg/rust-protobuf/pull/332
This commit is contained in:
parent
3b0a322bbd
commit
bbf56c6371
@ -19,7 +19,7 @@ multihash = { package = "parity-multihash", version = "0.1.0", path = "../misc/m
|
|||||||
multistream-select = { version = "0.2.0", path = "../misc/multistream-select" }
|
multistream-select = { version = "0.2.0", path = "../misc/multistream-select" }
|
||||||
futures = { version = "0.1", features = ["use_std"] }
|
futures = { version = "0.1", features = ["use_std"] }
|
||||||
parking_lot = "0.7"
|
parking_lot = "0.7"
|
||||||
protobuf = "2.0.2"
|
protobuf = "2.3"
|
||||||
quick-error = "1.2"
|
quick-error = "1.2"
|
||||||
rw-stream-sink = { version = "0.1.0", path = "../misc/rw-stream-sink" }
|
rw-stream-sink = { version = "0.1.0", path = "../misc/rw-stream-sink" }
|
||||||
smallvec = "0.6"
|
smallvec = "0.6"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
sudo docker run --rm -v `pwd`:/usr/code:z -w /usr/code rust /bin/bash -c " \
|
sudo docker run --rm -v `pwd`:/usr/code:z -w /usr/code rust /bin/bash -c " \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y protobuf-compiler; \
|
apt-get install -y protobuf-compiler; \
|
||||||
cargo install --version 2.0.2 protobuf-codegen; \
|
cargo install --version 2.3.0 protobuf-codegen; \
|
||||||
protoc --rust_out . keys.proto"
|
protoc --rust_out . keys.proto"
|
||||||
|
|
||||||
sudo chown $USER:$USER keys.rs
|
sudo chown $USER:$USER keys.rs
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// This file is generated by rust-protobuf 2.0.2. Do not edit
|
// This file is generated by rust-protobuf 2.3.0. Do not edit
|
||||||
// @generated
|
// @generated
|
||||||
|
|
||||||
// https://github.com/Manishearth/rust-clippy/issues/702
|
// https://github.com/Manishearth/rust-clippy/issues/702
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![allow(clippy)]
|
#![allow(clippy::all)]
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
|
|
||||||
@ -27,8 +27,8 @@ pub struct PublicKey {
|
|||||||
Type: ::std::option::Option<KeyType>,
|
Type: ::std::option::Option<KeyType>,
|
||||||
Data: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
Data: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PublicKey {
|
impl PublicKey {
|
||||||
@ -241,8 +241,8 @@ pub struct PrivateKey {
|
|||||||
Type: ::std::option::Option<KeyType>,
|
Type: ::std::option::Option<KeyType>,
|
||||||
Data: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
Data: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PrivateKey {
|
impl PrivateKey {
|
||||||
@ -495,6 +495,12 @@ impl ::protobuf::ProtobufEnum for KeyType {
|
|||||||
impl ::std::marker::Copy for KeyType {
|
impl ::std::marker::Copy for KeyType {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl ::std::default::Default for KeyType {
|
||||||
|
fn default() -> Self {
|
||||||
|
KeyType::RSA
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for KeyType {
|
impl ::protobuf::reflect::ProtobufValue for KeyType {
|
||||||
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
||||||
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
||||||
|
@ -16,7 +16,7 @@ cuckoofilter = "0.3.2"
|
|||||||
fnv = "1.0"
|
fnv = "1.0"
|
||||||
futures = "0.1"
|
futures = "0.1"
|
||||||
libp2p-core = { version = "0.2.0", path = "../../core" }
|
libp2p-core = { version = "0.2.0", path = "../../core" }
|
||||||
protobuf = "2.0.2"
|
protobuf = "2.3"
|
||||||
rand = "0.6"
|
rand = "0.6"
|
||||||
smallvec = "0.6.5"
|
smallvec = "0.6.5"
|
||||||
tokio-codec = "0.1"
|
tokio-codec = "0.1"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
docker run --rm -v `pwd`:/usr/code:z -w /usr/code rust /bin/bash -c " \
|
docker run --rm -v `pwd`:/usr/code:z -w /usr/code rust /bin/bash -c " \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y protobuf-compiler; \
|
apt-get install -y protobuf-compiler; \
|
||||||
cargo install --version 2.0.2 protobuf-codegen; \
|
cargo install --version 2.3.0 protobuf-codegen; \
|
||||||
protoc --rust_out . rpc.proto"
|
protoc --rust_out . rpc.proto"
|
||||||
|
|
||||||
sudo chown $USER:$USER *.rs
|
sudo chown $USER:$USER *.rs
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// This file is generated by rust-protobuf 2.0.2. Do not edit
|
// This file is generated by rust-protobuf 2.3.0. Do not edit
|
||||||
// @generated
|
// @generated
|
||||||
|
|
||||||
// https://github.com/Manishearth/rust-clippy/issues/702
|
// https://github.com/Manishearth/rust-clippy/issues/702
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![allow(clippy)]
|
#![allow(clippy::all)]
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
|
|
||||||
@ -27,8 +27,8 @@ pub struct RPC {
|
|||||||
subscriptions: ::protobuf::RepeatedField<RPC_SubOpts>,
|
subscriptions: ::protobuf::RepeatedField<RPC_SubOpts>,
|
||||||
publish: ::protobuf::RepeatedField<Message>,
|
publish: ::protobuf::RepeatedField<Message>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl RPC {
|
impl RPC {
|
||||||
@ -246,8 +246,8 @@ pub struct RPC_SubOpts {
|
|||||||
subscribe: ::std::option::Option<bool>,
|
subscribe: ::std::option::Option<bool>,
|
||||||
topicid: ::protobuf::SingularField<::std::string::String>,
|
topicid: ::protobuf::SingularField<::std::string::String>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl RPC_SubOpts {
|
impl RPC_SubOpts {
|
||||||
@ -460,8 +460,8 @@ pub struct Message {
|
|||||||
seqno: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
seqno: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
||||||
topicIDs: ::protobuf::RepeatedField<::std::string::String>,
|
topicIDs: ::protobuf::RepeatedField<::std::string::String>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Message {
|
impl Message {
|
||||||
@ -777,8 +777,8 @@ pub struct TopicDescriptor {
|
|||||||
auth: ::protobuf::SingularPtrField<TopicDescriptor_AuthOpts>,
|
auth: ::protobuf::SingularPtrField<TopicDescriptor_AuthOpts>,
|
||||||
enc: ::protobuf::SingularPtrField<TopicDescriptor_EncOpts>,
|
enc: ::protobuf::SingularPtrField<TopicDescriptor_EncOpts>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TopicDescriptor {
|
impl TopicDescriptor {
|
||||||
@ -1063,8 +1063,8 @@ pub struct TopicDescriptor_AuthOpts {
|
|||||||
mode: ::std::option::Option<TopicDescriptor_AuthOpts_AuthMode>,
|
mode: ::std::option::Option<TopicDescriptor_AuthOpts_AuthMode>,
|
||||||
keys: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
|
keys: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TopicDescriptor_AuthOpts {
|
impl TopicDescriptor_AuthOpts {
|
||||||
@ -1300,6 +1300,12 @@ impl ::protobuf::ProtobufEnum for TopicDescriptor_AuthOpts_AuthMode {
|
|||||||
impl ::std::marker::Copy for TopicDescriptor_AuthOpts_AuthMode {
|
impl ::std::marker::Copy for TopicDescriptor_AuthOpts_AuthMode {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl ::std::default::Default for TopicDescriptor_AuthOpts_AuthMode {
|
||||||
|
fn default() -> Self {
|
||||||
|
TopicDescriptor_AuthOpts_AuthMode::NONE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for TopicDescriptor_AuthOpts_AuthMode {
|
impl ::protobuf::reflect::ProtobufValue for TopicDescriptor_AuthOpts_AuthMode {
|
||||||
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
||||||
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
||||||
@ -1312,8 +1318,8 @@ pub struct TopicDescriptor_EncOpts {
|
|||||||
mode: ::std::option::Option<TopicDescriptor_EncOpts_EncMode>,
|
mode: ::std::option::Option<TopicDescriptor_EncOpts_EncMode>,
|
||||||
keyHashes: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
|
keyHashes: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TopicDescriptor_EncOpts {
|
impl TopicDescriptor_EncOpts {
|
||||||
@ -1549,6 +1555,12 @@ impl ::protobuf::ProtobufEnum for TopicDescriptor_EncOpts_EncMode {
|
|||||||
impl ::std::marker::Copy for TopicDescriptor_EncOpts_EncMode {
|
impl ::std::marker::Copy for TopicDescriptor_EncOpts_EncMode {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl ::std::default::Default for TopicDescriptor_EncOpts_EncMode {
|
||||||
|
fn default() -> Self {
|
||||||
|
TopicDescriptor_EncOpts_EncMode::NONE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for TopicDescriptor_EncOpts_EncMode {
|
impl ::protobuf::reflect::ProtobufValue for TopicDescriptor_EncOpts_EncMode {
|
||||||
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
||||||
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
||||||
|
@ -17,7 +17,7 @@ libp2p-core = { version = "0.2.0", path = "../../core" }
|
|||||||
log = "0.4.1"
|
log = "0.4.1"
|
||||||
multiaddr = { package = "parity-multiaddr", version = "0.1.0", path = "../../misc/multiaddr" }
|
multiaddr = { package = "parity-multiaddr", version = "0.1.0", path = "../../misc/multiaddr" }
|
||||||
parking_lot = "0.7"
|
parking_lot = "0.7"
|
||||||
protobuf = "2.0.2"
|
protobuf = "2.3"
|
||||||
smallvec = "0.6"
|
smallvec = "0.6"
|
||||||
tokio-codec = "0.1"
|
tokio-codec = "0.1"
|
||||||
tokio-io = "0.1.0"
|
tokio-io = "0.1.0"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
sudo docker run --rm -v `pwd`:/usr/code:z -w /usr/code rust /bin/bash -c " \
|
sudo docker run --rm -v `pwd`:/usr/code:z -w /usr/code rust /bin/bash -c " \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y protobuf-compiler; \
|
apt-get install -y protobuf-compiler; \
|
||||||
cargo install --version 2.0.2 protobuf-codegen; \
|
cargo install --version 2.3.0 protobuf-codegen; \
|
||||||
protoc --rust_out . structs.proto"
|
protoc --rust_out . structs.proto"
|
||||||
|
|
||||||
sudo chown $USER:$USER *.rs
|
sudo chown $USER:$USER *.rs
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// This file is generated by rust-protobuf 2.0.2. Do not edit
|
// This file is generated by rust-protobuf 2.3.0. Do not edit
|
||||||
// @generated
|
// @generated
|
||||||
|
|
||||||
// https://github.com/Manishearth/rust-clippy/issues/702
|
// https://github.com/Manishearth/rust-clippy/issues/702
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![allow(clippy)]
|
#![allow(clippy::all)]
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
|
|
||||||
@ -31,8 +31,8 @@ pub struct Identify {
|
|||||||
observedAddr: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
observedAddr: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
||||||
protocols: ::protobuf::RepeatedField<::std::string::String>,
|
protocols: ::protobuf::RepeatedField<::std::string::String>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Identify {
|
impl Identify {
|
||||||
|
@ -23,7 +23,7 @@ log = "0.4"
|
|||||||
multiaddr = { package = "parity-multiaddr", version = "0.1.0", path = "../../misc/multiaddr" }
|
multiaddr = { package = "parity-multiaddr", version = "0.1.0", path = "../../misc/multiaddr" }
|
||||||
multihash = { package = "parity-multihash", version = "0.1.0", path = "../../misc/multihash" }
|
multihash = { package = "parity-multihash", version = "0.1.0", path = "../../misc/multihash" }
|
||||||
parking_lot = "0.7"
|
parking_lot = "0.7"
|
||||||
protobuf = "2.0.2"
|
protobuf = "2.3"
|
||||||
rand = "0.6.0"
|
rand = "0.6.0"
|
||||||
smallvec = "0.6"
|
smallvec = "0.6"
|
||||||
tokio-codec = "0.1"
|
tokio-codec = "0.1"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
docker run --rm -v `pwd`:/usr/code:z -w /usr/code rust /bin/bash -c " \
|
docker run --rm -v `pwd`:/usr/code:z -w /usr/code rust /bin/bash -c " \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y protobuf-compiler; \
|
apt-get install -y protobuf-compiler; \
|
||||||
cargo install --version 2.0.2 protobuf-codegen; \
|
cargo install --version 2.3.0 protobuf-codegen; \
|
||||||
protoc --rust_out . dht.proto;\
|
protoc --rust_out . dht.proto;\
|
||||||
protoc --rust_out . record.proto"
|
protoc --rust_out . record.proto"
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// This file is generated by rust-protobuf 2.0.2. Do not edit
|
// This file is generated by rust-protobuf 2.3.0. Do not edit
|
||||||
// @generated
|
// @generated
|
||||||
|
|
||||||
// https://github.com/Manishearth/rust-clippy/issues/702
|
// https://github.com/Manishearth/rust-clippy/issues/702
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![allow(clippy)]
|
#![allow(clippy::all)]
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
|
|
||||||
@ -31,8 +31,8 @@ pub struct Message {
|
|||||||
closerPeers: ::protobuf::RepeatedField<Message_Peer>,
|
closerPeers: ::protobuf::RepeatedField<Message_Peer>,
|
||||||
providerPeers: ::protobuf::RepeatedField<Message_Peer>,
|
providerPeers: ::protobuf::RepeatedField<Message_Peer>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Message {
|
impl Message {
|
||||||
@ -430,8 +430,8 @@ pub struct Message_Peer {
|
|||||||
addrs: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
|
addrs: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
|
||||||
connection: ::std::option::Option<Message_ConnectionType>,
|
connection: ::std::option::Option<Message_ConnectionType>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Message_Peer {
|
impl Message_Peer {
|
||||||
@ -727,6 +727,12 @@ impl ::protobuf::ProtobufEnum for Message_MessageType {
|
|||||||
impl ::std::marker::Copy for Message_MessageType {
|
impl ::std::marker::Copy for Message_MessageType {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl ::std::default::Default for Message_MessageType {
|
||||||
|
fn default() -> Self {
|
||||||
|
Message_MessageType::PUT_VALUE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for Message_MessageType {
|
impl ::protobuf::reflect::ProtobufValue for Message_MessageType {
|
||||||
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
||||||
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
||||||
@ -782,6 +788,12 @@ impl ::protobuf::ProtobufEnum for Message_ConnectionType {
|
|||||||
impl ::std::marker::Copy for Message_ConnectionType {
|
impl ::std::marker::Copy for Message_ConnectionType {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl ::std::default::Default for Message_ConnectionType {
|
||||||
|
fn default() -> Self {
|
||||||
|
Message_ConnectionType::NOT_CONNECTED
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for Message_ConnectionType {
|
impl ::protobuf::reflect::ProtobufValue for Message_ConnectionType {
|
||||||
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
|
||||||
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// This file is generated by rust-protobuf 2.0.2. Do not edit
|
// This file is generated by rust-protobuf 2.3.0. Do not edit
|
||||||
// @generated
|
// @generated
|
||||||
|
|
||||||
// https://github.com/Manishearth/rust-clippy/issues/702
|
// https://github.com/Manishearth/rust-clippy/issues/702
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![allow(clippy)]
|
#![allow(clippy::all)]
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
|
|
||||||
@ -30,8 +30,8 @@ pub struct Record {
|
|||||||
signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
||||||
timeReceived: ::protobuf::SingularField<::std::string::String>,
|
timeReceived: ::protobuf::SingularField<::std::string::String>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Record {
|
impl Record {
|
||||||
|
@ -15,7 +15,7 @@ bytes = "0.4"
|
|||||||
futures = "0.1"
|
futures = "0.1"
|
||||||
libp2p-core = { version = "0.2.0", path = "../../core" }
|
libp2p-core = { version = "0.2.0", path = "../../core" }
|
||||||
log = "0.4.1"
|
log = "0.4.1"
|
||||||
protobuf = "2.0.2"
|
protobuf = "2.3"
|
||||||
rand = "0.6"
|
rand = "0.6"
|
||||||
secp256k1 = { version = "0.12", features = ["rand"], optional = true }
|
secp256k1 = { version = "0.12", features = ["rand"], optional = true }
|
||||||
aes-ctr = "0.3"
|
aes-ctr = "0.3"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
sudo docker run --rm -v `pwd`:/usr/code:z -w /usr/code rust /bin/bash -c " \
|
sudo docker run --rm -v `pwd`:/usr/code:z -w /usr/code rust /bin/bash -c " \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y protobuf-compiler; \
|
apt-get install -y protobuf-compiler; \
|
||||||
cargo install --version 2.0.2 protobuf-codegen; \
|
cargo install --version 2.3.0 protobuf-codegen; \
|
||||||
protoc --rust_out . structs.proto"
|
protoc --rust_out . structs.proto"
|
||||||
|
|
||||||
sudo chown $USER:$USER *.rs
|
sudo chown $USER:$USER *.rs
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// This file is generated by rust-protobuf 2.0.2. Do not edit
|
// This file is generated by rust-protobuf 2.3.0. Do not edit
|
||||||
// @generated
|
// @generated
|
||||||
|
|
||||||
// https://github.com/Manishearth/rust-clippy/issues/702
|
// https://github.com/Manishearth/rust-clippy/issues/702
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![allow(clippy)]
|
#![allow(clippy::all)]
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
|
|
||||||
@ -30,8 +30,8 @@ pub struct Propose {
|
|||||||
ciphers: ::protobuf::SingularField<::std::string::String>,
|
ciphers: ::protobuf::SingularField<::std::string::String>,
|
||||||
hashes: ::protobuf::SingularField<::std::string::String>,
|
hashes: ::protobuf::SingularField<::std::string::String>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Propose {
|
impl Propose {
|
||||||
@ -408,8 +408,8 @@ pub struct Exchange {
|
|||||||
epubkey: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
epubkey: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
||||||
signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
|
||||||
// special fields
|
// special fields
|
||||||
unknown_fields: ::protobuf::UnknownFields,
|
pub unknown_fields: ::protobuf::UnknownFields,
|
||||||
cached_size: ::protobuf::CachedSize,
|
pub cached_size: ::protobuf::CachedSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Exchange {
|
impl Exchange {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user