Skip to content

Commit

Permalink
chore: cfg-if, rand, md5 made optional only for v1 ciphers
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Nov 2, 2024
1 parent 6da6267 commit d21f894
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shadowsocks-crypto"
version = "0.5.5"
version = "0.5.6"
authors = ["luozijun <[email protected]>", "ty <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -13,7 +13,7 @@ rust-version = "1.61"

[features]
default = ["v1", "v1-aead"]
v1 = []
v1 = ["md-5", "rand", "cfg-if"]
v1-stream = ["v1", "chacha20", "aes", "ctr", "camellia"]
v1-aead = ["v1", "aes-gcm", "chacha20poly1305", "hkdf", "sha1"]
v1-aead-extra = [
Expand All @@ -33,14 +33,14 @@ v2-extra = ["v2", "chacha20poly1305/reduced-round"]
ring = ["ring-compat"]

[dependencies]
cfg-if = "1.0"
rand = "0.8"
cfg-if = { version = "1.0", optional = true }
rand = { version = "0.8", optional = true }
aes-gcm = { version = "0.10", optional = true }
aes-gcm-siv = { version = "0.11", optional = true }
ccm = { version = "0.5", optional = true }
chacha20poly1305 = { version = "0.10", optional = true }
ring-compat = { version = "0.8", optional = true }
md-5 = { version = "0.10" }
md-5 = { version = "0.10", optional = true }
hkdf = { version = "0.12", optional = true }
sha1 = { version = "0.10", optional = true }
blake3 = { version = "1.3", optional = true }
Expand Down

0 comments on commit d21f894

Please sign in to comment.