From e8a7eb9a3f2cc88a33d45725f5c7ecd9801d1aba Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 4 Oct 2024 19:56:16 +0800 Subject: [PATCH] Update deps --- leaf/Cargo.toml | 4 ++-- leaf/src/app/outbound/selector_cache.rs | 7 +++---- leaf/src/config/geosite.rs | 7 +++---- leaf/src/config/internal/config.rs | 7 +++---- leaf/src/proxy/tun/inbound.rs | 14 ++------------ 5 files changed, 13 insertions(+), 26 deletions(-) diff --git a/leaf/Cargo.toml b/leaf/Cargo.toml index 36d54ce..e073c4f 100644 --- a/leaf/Cargo.toml +++ b/leaf/Cargo.toml @@ -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" @@ -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" diff --git a/leaf/src/app/outbound/selector_cache.rs b/leaf/src/app/outbound/selector_cache.rs index f431eca..eec709c 100644 --- a/leaf/src/app/outbound/selector_cache.rs +++ b/leaf/src/app/outbound/selector_cache.rs @@ -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 @@ -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)] @@ -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)] diff --git a/leaf/src/config/geosite.rs b/leaf/src/config/geosite.rs index a874557..57b03ed 100644 --- a/leaf/src/config/geosite.rs +++ b/leaf/src/config/geosite.rs @@ -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 @@ -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)] @@ -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)] diff --git a/leaf/src/config/internal/config.rs b/leaf/src/config/internal/config.rs index ebf9027..a94ac70 100644 --- a/leaf/src/config/internal/config.rs +++ b/leaf/src/config/internal/config.rs @@ -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 @@ -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)] @@ -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)] diff --git a/leaf/src/proxy/tun/inbound.rs b/leaf/src/proxy/tun/inbound.rs index 9395649..9d24aca 100644 --- a/leaf/src/proxy/tun/inbound.rs +++ b/leaf/src/proxy/tun/inbound.rs @@ -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); } @@ -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); }