Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
eycorsican committed Oct 4, 2024
1 parent d4cb1c9 commit e8a7eb9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 26 deletions.
4 changes: 2 additions & 2 deletions leaf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ ctrlc = ["tokio/signal"]
[dependencies]
# Common
tokio = { version = "1", features = ["sync", "io-util", "net", "time", "rt", "rt-multi-thread"] }
protobuf = "=3.4.0"
protobuf = "=3.6.0"
thiserror = "1.0"
futures = "0.3"
async-trait = "0.1"
Expand Down Expand Up @@ -270,4 +270,4 @@ tokio = { version = "1", features = ["fs", "sync", "io-util", "net", "time", "rt
[build-dependencies]
cc = "1.0"
bindgen = "0.69"
protobuf-codegen = "=3.4.0"
protobuf-codegen = "=3.6.0"
7 changes: 3 additions & 4 deletions leaf/src/app/outbound/selector_cache.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is generated by rust-protobuf 3.4.0. Do not edit
// .proto file is parsed by protoc 26.1
// This file is generated by rust-protobuf 3.6.0. Do not edit
// .proto file is parsed by protoc 28.1
// @generated

// https://github.com/rust-lang/rust-clippy/issues/702
Expand All @@ -9,7 +9,6 @@
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]

#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
Expand All @@ -24,7 +23,7 @@

/// Generated files are compatible only with the same version
/// of protobuf runtime.
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0;
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_6_0;

// @@protoc_insertion_point(message:SelectorCache)
#[derive(PartialEq,Clone,Default,Debug)]
Expand Down
7 changes: 3 additions & 4 deletions leaf/src/config/geosite.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is generated by rust-protobuf 3.4.0. Do not edit
// .proto file is parsed by protoc 26.1
// This file is generated by rust-protobuf 3.6.0. Do not edit
// .proto file is parsed by protoc 28.1
// @generated

// https://github.com/rust-lang/rust-clippy/issues/702
Expand All @@ -9,7 +9,6 @@
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]

#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
Expand All @@ -24,7 +23,7 @@

/// Generated files are compatible only with the same version
/// of protobuf runtime.
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0;
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_6_0;

// @@protoc_insertion_point(message:Domain)
#[derive(PartialEq,Clone,Default,Debug)]
Expand Down
7 changes: 3 additions & 4 deletions leaf/src/config/internal/config.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is generated by rust-protobuf 3.4.0. Do not edit
// .proto file is parsed by protoc 26.1
// This file is generated by rust-protobuf 3.6.0. Do not edit
// .proto file is parsed by protoc 28.1
// @generated

// https://github.com/rust-lang/rust-clippy/issues/702
Expand All @@ -9,7 +9,6 @@
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]

#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
Expand All @@ -24,7 +23,7 @@

/// Generated files are compatible only with the same version
/// of protobuf runtime.
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0;
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_6_0;

// @@protoc_insertion_point(message:Dns)
#[derive(PartialEq,Clone,Default,Debug)]
Expand Down
14 changes: 2 additions & 12 deletions leaf/src/proxy/tun/inbound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,7 @@ pub fn new(
.destination(&*option::DEFAULT_TUN_IPV4_GW)
.mtu(1500);

#[cfg(not(any(
target_arch = "mips",
target_arch = "mips64",
target_arch = "mipsel",
target_arch = "mipsel64",
)))]
#[cfg(not(any(target_arch = "mips", target_arch = "mips64")))]
{
cfg.netmask(&*option::DEFAULT_TUN_IPV4_MASK);
}
Expand All @@ -191,12 +186,7 @@ pub fn new(
.destination(settings.gateway)
.mtu(settings.mtu);

#[cfg(not(any(
target_arch = "mips",
target_arch = "mips64",
target_arch = "mipsel",
target_arch = "mipsel64",
)))]
#[cfg(not(any(target_arch = "mips", target_arch = "mips64")))]
{
cfg.netmask(settings.netmask);
}
Expand Down

0 comments on commit e8a7eb9

Please sign in to comment.