From 4b86752c795f42c692ddb66da2a392739a55e6b7 Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Wed, 27 Sep 2023 19:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84features?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +-- vnt-cli/Cargo.toml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0af6246..0dd2f97 100644 --- a/README.md +++ b/README.md @@ -68,14 +68,13 @@ A virtual network tool (VPN) 也可按需编译,将得到更小的二进制文件,使用--no-default-features排除默认features -cargo build -p vnt-cli --no-default-features --features raw +cargo build -p vnt-cli --no-default-features ``` features说明 | feature | 说明 | |------------------|----------------------| -| raw | 默认 | | openssl | 使用openssl中的aes_ecb算法 | | openssl-vendored | 从源码编译openssl | | ring-cipher | 使用ring中的aes_gcm算法 | diff --git a/vnt-cli/Cargo.toml b/vnt-cli/Cargo.toml index 5609b40..709ece6 100644 --- a/vnt-cli/Cargo.toml +++ b/vnt-cli/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -vnt = { path = "../vnt", package = "vnt",default-features = false, optional = true } +vnt = { path = "../vnt", package = "vnt",default-features = false } common = { path = "../common" } tokio = { version = "1.32.0", features = ["full"] } getopts = "0.2.21" @@ -32,7 +32,6 @@ winapi = { version = "0.3.9", features = ["handleapi", "processthreadsapi", "win [features] default = ["server_encrypt","aes_gcm","aes_cbc","aes_ecb","sm4_cbc"] -raw=["vnt"] openssl = ["vnt/openssl"] openssl-vendored = ["vnt/openssl-vendored"] ring-cipher = ["vnt/ring-cipher"]