feat: separate zstd and faketcp into features (#1861)

* feat: separate faketcp into a feature
* fix: no need to initialize out_len
* feat: separate zstd into a feature
* clippy: remove unnecessary cast, because for unix size_t always equals usize
This commit is contained in:
Chenx Dust
2026-02-03 11:12:33 +08:00
committed by GitHub
parent 7750e81168
commit e1cbd07d1f
8 changed files with 79 additions and 23 deletions
+3 -1
View File
@@ -15,7 +15,6 @@ use self::packet_def::ZCPacket;
pub mod buf;
pub mod common;
pub mod fake_tcp;
pub mod filter;
pub mod mpsc;
pub mod packet_def;
@@ -33,6 +32,9 @@ pub const PROTO_PORT_OFFSET: &[(&str, u16)] = &[
("faketcp", 3),
];
#[cfg(feature = "faketcp")]
pub mod fake_tcp;
#[cfg(feature = "wireguard")]
pub mod wireguard;