From bfb3d9b7533e631a22601b0b5fa2a0206a841f01 Mon Sep 17 00:00:00 2001 From: Ed Cragg Date: Wed, 5 Feb 2020 13:11:04 +0800 Subject: [PATCH] Use bundled sqlite Could be useful to have a feature to use system sqlite in the future, but for now this is easy. --- Cargo.lock | 2 ++ Cargo.toml | 1 + 2 files changed, 3 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 80c531a..1850fea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -196,6 +196,7 @@ dependencies = [ "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "harsh 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "iron 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", + "libsqlite3-sys 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "params 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", "router 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -354,6 +355,7 @@ name = "libsqlite3-sys" version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ + "cc 1.0.50 (registry+https://github.com/rust-lang/crates.io-index)", "pkg-config 0.3.17 (registry+https://github.com/rust-lang/crates.io-index)", "vcpkg 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/Cargo.toml b/Cargo.toml index 8277ed0..aad5496 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,3 +33,4 @@ failure = "0.1.6" toml = "0.5.5" chrono = "0.4.10" diesel = { version = "1.4.3", features = ["sqlite"] } +libsqlite3-sys = { version = "0.16.0", features = ["bundled"] }