From f6c78b957b3b6a647ea92e73083efbe6836475c1 Mon Sep 17 00:00:00 2001 From: EliasSchriefer Date: Mon, 7 Jun 2021 15:56:48 +0000 Subject: [PATCH] Add feature sqlite --- Cargo.lock | 12 ++++++++++++ Cargo.toml | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index f16cf55..f2cdd4e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -995,6 +995,17 @@ version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41" +[[package]] +name = "libsqlite3-sys" +version = "0.22.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290b64917f8b0cb885d9de0f9959fe1f775d7fa12f1da2db9001c1c8ab60f89d" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] + [[package]] name = "linked-hash-map" version = "0.5.4" @@ -1824,6 +1835,7 @@ dependencies = [ "hex", "itoa", "libc", + "libsqlite3-sys", "log", "memchr", "once_cell", diff --git a/Cargo.toml b/Cargo.toml index 98ae926..57144ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,4 +11,8 @@ juniper = "^0.15" juniper_warp = "^0.6" juniper-from-schema = { git = "https://github.com/davidpdrsn/juniper-from-schema" } sqlx = { version = "^0.5", features = ["runtime-tokio-native-tls"] } -warp = { version = "^0.3", default-features = false, features = ["compression", "tls"] } \ No newline at end of file +warp = { version = "^0.3", default-features = false, features = ["compression", "tls"] } + +[features] +default = ["sqlite"] +sqlite = ["sqlx/sqlite"] \ No newline at end of file