去除不必要的features
This commit is contained in:
@@ -68,14 +68,13 @@ A virtual network tool (VPN)
|
|||||||
|
|
||||||
也可按需编译,将得到更小的二进制文件,使用--no-default-features排除默认features
|
也可按需编译,将得到更小的二进制文件,使用--no-default-features排除默认features
|
||||||
|
|
||||||
cargo build -p vnt-cli --no-default-features --features raw
|
cargo build -p vnt-cli --no-default-features
|
||||||
```
|
```
|
||||||
|
|
||||||
features说明
|
features说明
|
||||||
|
|
||||||
| feature | 说明 |
|
| feature | 说明 |
|
||||||
|------------------|----------------------|
|
|------------------|----------------------|
|
||||||
| raw | 默认 |
|
|
||||||
| openssl | 使用openssl中的aes_ecb算法 |
|
| openssl | 使用openssl中的aes_ecb算法 |
|
||||||
| openssl-vendored | 从源码编译openssl |
|
| openssl-vendored | 从源码编译openssl |
|
||||||
| ring-cipher | 使用ring中的aes_gcm算法 |
|
| ring-cipher | 使用ring中的aes_gcm算法 |
|
||||||
|
|||||||
+1
-2
@@ -6,7 +6,7 @@ edition = "2021"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
vnt = { path = "../vnt", package = "vnt",default-features = false, optional = true }
|
vnt = { path = "../vnt", package = "vnt",default-features = false }
|
||||||
common = { path = "../common" }
|
common = { path = "../common" }
|
||||||
tokio = { version = "1.32.0", features = ["full"] }
|
tokio = { version = "1.32.0", features = ["full"] }
|
||||||
getopts = "0.2.21"
|
getopts = "0.2.21"
|
||||||
@@ -32,7 +32,6 @@ winapi = { version = "0.3.9", features = ["handleapi", "processthreadsapi", "win
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["server_encrypt","aes_gcm","aes_cbc","aes_ecb","sm4_cbc"]
|
default = ["server_encrypt","aes_gcm","aes_cbc","aes_ecb","sm4_cbc"]
|
||||||
raw=["vnt"]
|
|
||||||
openssl = ["vnt/openssl"]
|
openssl = ["vnt/openssl"]
|
||||||
openssl-vendored = ["vnt/openssl-vendored"]
|
openssl-vendored = ["vnt/openssl-vendored"]
|
||||||
ring-cipher = ["vnt/ring-cipher"]
|
ring-cipher = ["vnt/ring-cipher"]
|
||||||
|
|||||||
Reference in New Issue
Block a user