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"]