-
Notifications
You must be signed in to change notification settings - Fork 29
/
Cargo.toml
39 lines (32 loc) · 1.08 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[package]
name = "lucky_commit"
version = "2.2.3"
authors = ["Teddy Katz <[email protected]>"]
edition = "2018"
description = "Make your git commits lucky!"
repository = "https://github.com/not-an-aardvark/lucky-commit"
license = "MIT"
resolver = "2"
rust-version = "1.57.0"
include = ["src/**/*", "Cargo.*", "LICENSE.md", "README.md"]
[lib]
name = "lucky_commit"
path = "src/lib.rs"
[features]
default = ["opencl"]
opencl = ["ocl"]
[[bin]]
name = "lucky_commit"
path = "src/bin.rs"
[dependencies]
num_cpus = "1.0"
ocl = { version = "0.19", optional = true }
# See https://github.com/RustCrypto/hashes/issues/315
[target.'cfg(target_env = "msvc")'.dependencies]
"sha-1" = { version = "0.10", "default-features" = false, features = ["compress"] }
"sha2" = { version = "0.10", "default-features" = false, features = ["compress"] }
[target.'cfg(not(target_env = "msvc"))'.dependencies]
"sha-1" = { version = "0.10", "default-features" = false, features = ["asm", "compress"] }
"sha2" = { version = "0.10", "default-features" = false, features = ["asm", "compress"] }
[profile.release]
lto = true