diff --git a/Cargo.toml b/Cargo.toml index 4873164..b172065 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shadowsocks-crypto" -version = "0.5.5" +version = "0.5.6" authors = ["luozijun ", "ty "] edition = "2021" license = "MIT" @@ -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 = [ @@ -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 }