Skip to content

Commit

Permalink
Avoid md5 asm on non x86 platforms
Browse files Browse the repository at this point in the history
Signed-off-by: Lee Smet <[email protected]>
  • Loading branch information
LeeSmet committed Jan 15, 2024
1 parent 9e292f4 commit 1b6a584
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,8 @@ description = "An experimental S3 server using a cas storage layer"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = []
binary = [
"anyhow",
"dotenv",
"structopt",
"tokio"
]
vendored = [
"openssl"
]
binary = ["anyhow", "dotenv", "structopt", "tokio"]
vendored = ["openssl"]
refcount = []

[[bin]]
Expand All @@ -38,12 +31,18 @@ async-fs = "1.5"
faster-hex = "0.6"
uuid = { version = "0.8", features = ["v4"] }
chrono = "0.4"
structopt = { version = "0.3", optional = true }
structopt = { version = "0.3", optional = true }
anyhow = { version = "1.0", optional = true }
dotenv = { version = "0.15", optional = true }
openssl = { version = "0.10", features = ["vendored"], optional = true }
prometheus = { version = "0.13", features = ["process"] }

[target.'cfg(any(taget_arch = "x86", target_arch = "x86_64"))'.dependencies]
md-5 = { version = "0.9", features = ["asm"] }

[target.'cfg(not(any(taget_arch = "x86", target_arch = "x86_64")))'.dependencies]
md-5 = { version = "0.9" }

[profile.release]
lto = true
codegen-units = 1

0 comments on commit 1b6a584

Please sign in to comment.