Skip to content

Commit ef5d2d0

Browse files
authored
Merge pull request #166 from paolobarbolini/more-test-dependencies
build(deps): gate `cc`, `cmake` and `subprocess` behind `test` feature
2 parents 5b86fe2 + 8e55ee2 commit ef5d2d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ unic-langid = { version = "0.9.4" }
7373
bindgen = { version = "0.70", default-features = false, features = [
7474
"runtime",
7575
], optional = true }
76-
cc = "1.0"
77-
cmake = "0.1"
78-
subprocess = "0.2"
76+
cc = { version = "1.0", optional = true }
77+
cmake = { version = "0.1", optional = true }
78+
subprocess = { version = "0.2", optional = true }
7979

8080
[profile.bench]
8181
debug = true
@@ -88,7 +88,7 @@ incremental = false
8888

8989
[features]
9090
default = ["flate2/zlib", "derive"]
91-
test = ["derive", "time", "bindgen"]
91+
test = ["derive", "time", "bindgen", "dep:cc", "dep:cmake", "dep:subprocess"]
9292
derive = ["mysql-common-derive"]
9393
binlog = ["bitvec", "dep:zstd"]
9494
nightly = ["test"]

0 commit comments

Comments
 (0)