Skip to content

Commit 944d355

Browse files
committed
chore: refactor dependencies
1 parent 941aae2 commit 944d355

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

Cargo.lock

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ keywords = [
1010
"tool",
1111
]
1212
license = "MIT/Apache-2.0"
13-
exclude = [
14-
"/completions"
15-
]
13+
exclude = ["/completions"]
1614
repository = "https://github.com/wfxr/code-minimap"
1715
edition = "2018"
1816
build = "build.rs"
1917

18+
[features]
19+
default = ["application"]
20+
# Feature required for build the `code-minimap` application. Should be disabled when
21+
# depending on `code-minimap` as a library.
22+
application = ["structopt"]
23+
2024
[lib]
2125
name = "code_minimap"
2226
path = "src/lib.rs"
@@ -29,14 +33,14 @@ path = "src/bin/code-minimap/main.rs"
2933
nix = "0.18"
3034

3135
[dependencies]
32-
itertools = "0.9"
33-
structopt = { version = "0.3", features = ["wrap_help"] }
36+
itertools = "0.10"
37+
structopt = { version = "0.3", features = ["wrap_help"], optional = true }
3438

3539
[build-dependencies]
3640
structopt = "0.3"
3741

3842
[dev-dependencies]
39-
rstest = "0.6.4"
43+
rstest = "0.6"
4044

4145
[profile.release]
4246
lto = true

0 commit comments

Comments
 (0)