Add use_system_unicorn feature in rust bindings

This commit is contained in:
Bet4
2021-12-09 23:07:23 +08:00
parent 1923c12315
commit 3e9ae003b7
2 changed files with 37 additions and 6 deletions

View File

@@ -24,8 +24,14 @@ bitflags = "1.3"
libc = "0.2"
[build-dependencies]
build-helper = "0.1"
reqwest = { version = "0.11", features = ["blocking"] }
flate2 = "1.0.22"
tar = "0.4.37"
bytes = "1.1.0"
reqwest = { optional = true, version = "0.11", features = ["blocking"] }
flate2 = { optional = true, version = "1.0" }
tar = { optional = true, version = "0.4" }
bytes = { optional = true, version = "1" }
pkg-config = { optional = true, version = "0.3" }
[features]
default = ["build_unicorn_cmake"]
use_system_unicorn = ["pkg-config"]
build_unicorn_cmake = ["reqwest", "flate2", "tar", "bytes"]