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"