Skip to content

Commit c4e8afe

Browse files
committed
Make binary dependencies optional
1 parent 298f1f9 commit c4e8afe

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- Make binary dependencies optional
11+
1012
## [v0.24.0] - 2022-05-12
1113

1214
[commits][v0.24.0]

Cargo.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,17 @@ section = "rust"
3333
doc = false
3434
name = "svd2rust"
3535
path = "src/main.rs"
36+
required-features = ["bin"]
37+
38+
[features]
39+
default = ["bin"]
40+
bin = ["clap", "clap_conf", "env_logger"]
3641

3742
[dependencies]
3843
cast = "0.3"
39-
clap = "2.33"
40-
clap_conf = "0.1.5"
41-
env_logger = "0.9"
44+
clap = { version = "2.33", optional = true }
45+
clap_conf = { version = "0.1.5", optional = true }
46+
env_logger = { version = "0.9", optional = true }
4247
inflections = "1.1"
4348
log = { version = "~0.4", features = ["std"] }
4449
quote = "1.0"

0 commit comments

Comments
 (0)