Skip to content

Commit 09821eb

Browse files
committed
Split cli feature
1 parent d68a000 commit 09821eb

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

intel-mkl-src/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ failure = "0.1"
2525
[build-dependencies.intel-mkl-tool]
2626
version = "0.1.0"
2727
path = "../intel-mkl-tool"
28+
default-features = false
2829

2930
[dev-dependencies]
3031
libc = "0.2.65"

intel-mkl-tool/Cargo.toml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,24 @@ version = "0.1.0"
44
authors = ["Toshiki Teramura <[email protected]>"]
55
edition = "2018"
66

7+
[features]
8+
default = ["cli"]
9+
cli = ["structopt", "env_logger"]
10+
711
[dependencies]
812
curl = "0.4.25"
913
failure = "0.1.6"
1014
pkg-config = "0.3.17"
1115
tar = "0.4.26"
1216
xz2 = "0.1.6"
1317
log = "0.4.8"
18+
dirs = "*"
1419

1520
# CLI
16-
structopt = "0.3.4"
17-
env_logger = "0.7.1"
18-
dirs = "*"
21+
structopt = { version = "0.3.4", optional = true }
22+
env_logger = { version = "0.7.1", optional = true }
23+
24+
[[bin]]
25+
name = "intel-mkl-tool"
26+
path = "src/cli.rs"
27+
required-features = ["cli"]
File renamed without changes.

0 commit comments

Comments
 (0)