Skip to content

Commit

Permalink
Fix broken builds on MSVC targets
Browse files Browse the repository at this point in the history
  • Loading branch information
not-an-aardvark committed Sep 9, 2021
1 parent 0000000 commit 0000000
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ path = "src/bin.rs"
ocl = { version = "0.19", optional = true }

[dependencies]

num_cpus = "1.0"
"sha-1" = { version = "0.9", "default-features" = false, features = ["asm", "compress"] }
ocl = { version = "0.19", optional = true }

# See https://github.com/RustCrypto/hashes/issues/315
[target.'cfg(target_env = "msvc")'.dependencies]
"sha-1" = { version = "0.9", "default-features" = false, features = ["compress"] }
[target.'cfg(not(target_env = "msvc"))'.dependencies]
"sha-1" = { version = "0.9", "default-features" = false, features = ["asm", "compress"] }

[profile.release]
lto = true

0 comments on commit 0000000

Please sign in to comment.