From 0fb70dab0fff1f79119b8ed992074154321235df Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 5 Feb 2020 15:01:40 +1000 Subject: [PATCH] comply with manylinux wheel requirements, and vendor sqlite on Windows --- rslib/Cargo.toml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/rslib/Cargo.toml b/rslib/Cargo.toml index 198c75955..1379b0592 100644 --- a/rslib/Cargo.toml +++ b/rslib/Cargo.toml @@ -19,8 +19,6 @@ htmlescape = "0.3.1" sha1 = "0.6.0" unicode-normalization = "0.1.12" tempfile = "3.1.0" -rusqlite = { version = "0.21.0", features = ["trace"] } -reqwest = { version = "0.10.1", features = ["json"] } serde = "1.0.104" serde_json = "1.0.45" tokio = "0.2.11" @@ -31,6 +29,18 @@ log = "0.4.8" serde_tuple = "0.4.0" trash = "1.0.0" +[target.'cfg(target_vendor="apple")'.dependencies] +rusqlite = { version = "0.21.0", features = ["trace"] } + +[target.'cfg(not(target_vendor="apple"))'.dependencies] +rusqlite = { version = "0.21.0", features = ["trace", "bundled"] } + +[target.'cfg(linux)'.dependencies] +reqwest = { version = "0.10.1", features = ["json", "native-tls-vendored"] } + +[target.'cfg(not(linux))'.dependencies] +reqwest = { version = "0.10.1", features = ["json"] } + [build-dependencies] prost-build = "0.5.0"