Skip to content

Commit d21f894

Browse files
committed
chore: cfg-if, rand, md5 made optional only for v1 ciphers
1 parent 6da6267 commit d21f894

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shadowsocks-crypto"
3-
version = "0.5.5"
3+
version = "0.5.6"
44
authors = ["luozijun <[email protected]>", "ty <[email protected]>"]
55
edition = "2021"
66
license = "MIT"
@@ -13,7 +13,7 @@ rust-version = "1.61"
1313

1414
[features]
1515
default = ["v1", "v1-aead"]
16-
v1 = []
16+
v1 = ["md-5", "rand", "cfg-if"]
1717
v1-stream = ["v1", "chacha20", "aes", "ctr", "camellia"]
1818
v1-aead = ["v1", "aes-gcm", "chacha20poly1305", "hkdf", "sha1"]
1919
v1-aead-extra = [
@@ -33,14 +33,14 @@ v2-extra = ["v2", "chacha20poly1305/reduced-round"]
3333
ring = ["ring-compat"]
3434

3535
[dependencies]
36-
cfg-if = "1.0"
37-
rand = "0.8"
36+
cfg-if = { version = "1.0", optional = true }
37+
rand = { version = "0.8", optional = true }
3838
aes-gcm = { version = "0.10", optional = true }
3939
aes-gcm-siv = { version = "0.11", optional = true }
4040
ccm = { version = "0.5", optional = true }
4141
chacha20poly1305 = { version = "0.10", optional = true }
4242
ring-compat = { version = "0.8", optional = true }
43-
md-5 = { version = "0.10" }
43+
md-5 = { version = "0.10", optional = true }
4444
hkdf = { version = "0.12", optional = true }
4545
sha1 = { version = "0.10", optional = true }
4646
blake3 = { version = "1.3", optional = true }

0 commit comments

Comments
 (0)