From 2b4b17dbdaa7c01f3b54e0e54a7edcb13e5d497c Mon Sep 17 00:00:00 2001 From: Kirill Kovalenko Date: Sun, 7 Aug 2022 10:31:59 -0500 Subject: [PATCH] fix: windows compilation with bundled sqlite3 Using 'bundled' is recommended by https://github.com/rusqlite/rusqlite#usage to avoid common build issues --- Cargo.lock | 1 + Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 51d8cc4..90f8d8c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -702,6 +702,7 @@ version = "0.23.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2cafc7c74096c336d9d27145f7ebd4f4b6f95ba16aa5a282387267e6925cb58" dependencies = [ + "cc", "pkg-config", "vcpkg", ] diff --git a/Cargo.toml b/Cargo.toml index e251000..09baf62 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ secp256k1 = {version = "^0.21", features = ["rand", "rand-std", "serde", "bitcoi serde = { version = "^1.0", features = ["derive"] } serde_json = {version = "^1.0", features = ["preserve_order"]} hex = "^0.4" -rusqlite = { version = "^0.26", features = ["limits"]} +rusqlite = { version = "^0.26", features = ["limits","bundled"]} r2d2 = "^0.8" r2d2_sqlite = "^0.19" lazy_static = "^1.4"