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 15 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.

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2018"
description = "Make your git commits lucky!"
repository = "https://github.com/not-an-aardvark/lucky-commit"
license = "MIT"
resolver = "2"

[lib]
name = "lucky_commit"
Expand All @@ -23,10 +24,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.