去除不必要的features

This commit is contained in:
lubeilin
2023-09-27 19:59:50 +08:00
parent bd61cad7b6
commit 4b86752c79
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -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算法 |
+1 -2
View File
@@ -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"]