From 050ae2facf433e7f77f2c8bef198b6a85c6b023a Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Sun, 27 Aug 2023 05:05:22 -0400 Subject: [PATCH] Add sqlite dependency --- Cargo.lock | 31 +++++++++++++++++++++++++++++++ cli/Cargo.toml | 1 + flake.nix | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index d989fae..bf8b758 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -304,6 +304,7 @@ dependencies = [ "futures", "schema", "serde", + "sqlite", "surf", ] @@ -1530,6 +1531,36 @@ dependencies = [ "lock_api", ] +[[package]] +name = "sqlite" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05439db7afa0ce0b38f6d1b4c691f368adde108df021e15e900fec6a1af92488" +dependencies = [ + "libc", + "sqlite3-sys", +] + +[[package]] +name = "sqlite3-src" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfc95a51a1ee38839599371685b9d4a926abb51791f0bc3bf8c3bb7867e6e454" +dependencies = [ + "cc", + "pkg-config", +] + +[[package]] +name = "sqlite3-sys" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2752c669433e40ebb08fde824146f50d9628aa0b66a3b7fc6be34db82a8063b" +dependencies = [ + "libc", + "sqlite3-src", +] + [[package]] name = "standback" version = "0.2.17" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 06c414c..18fa25d 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -14,6 +14,7 @@ surf = "2" dirs = "5.0" futures = "0.3" serde = "1.0" +sqlite = "0.31" [build-dependencies] cynic-codegen = "3.2" diff --git a/flake.nix b/flake.nix index e664663..2995118 100644 --- a/flake.nix +++ b/flake.nix @@ -30,7 +30,7 @@ version = "0.1.0"; src = craneLib.path ./.; cargoBuildFlags = "-p cli"; - buildInputs = [ pkgs.openssl ]; + buildInputs = [ pkgs.openssl pkgs.sqlite ]; nativeBuildInputs = [ pkgs.pkg-config ]; };