Skip to content

Commit

Permalink
sha1-asm, md5-asm can only be used in some platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jan 27, 2022
1 parent c5da0f3 commit 7607404
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,25 @@ aes-gcm-siv = { version = "0.10.3", optional = true }
ccm = { version = "0.4.4", optional = true }
chacha20poly1305 = { version = "0.9", optional = true }
ring-compat = { version = "0.4", optional = true }
md-5 = { version = "0.10", features = ["asm"] }
md-5 = { version = "0.10" }
hkdf = { version = "0.12", optional = true }
sha1 = { version = "0.10", features = ["asm"], optional = true }
sha1 = { version = "0.10", optional = true }
chacha20 = { version = "0.8.1", optional = true }
aes = { version = "0.7.5", features = ["ctr"], optional = true }

[target.'cfg(all(unix, any(target_arch = "x86", target_arch = "x86_64")))'.dependencies]
md-5 = { version = "0.10", features = ["asm"] }
sha1 = { version = "0.10", features = ["asm"], optional = true }

[target.'cfg(all(windows, any(target_arch = "x86", target_arch = "x86_64"), target_env = "gnu"))'.dependencies]
md-5 = { version = "0.10", features = ["asm"] }
sha1 = { version = "0.10", features = ["asm"], optional = true }

[target.'cfg(all(windows, target_arch = "aarch64", target_env = "gnu"))'.dependencies]
sha1 = { version = "0.10", features = ["asm"], optional = true }

[target.'cfg(all(unix, target_arch = "aarch64"))'.dependencies]
sha1 = { version = "0.10", features = ["asm"], optional = true }

[dev-dependencies]
hex = "0.4"

0 comments on commit 7607404

Please sign in to comment.