From 72659580dedf6cf84be49c90ca13407c1ac5e652 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 1 Jan 2022 00:00:00 +0000 Subject: [PATCH] sql: build rusqlite with sqlcipher --- Cargo.lock | 1 + Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0e2fad059..8fb81cffd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2108,6 +2108,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2cafc7c74096c336d9d27145f7ebd4f4b6f95ba16aa5a282387267e6925cb58" dependencies = [ "cc", + "openssl-sys", "pkg-config", "vcpkg", ] diff --git a/Cargo.toml b/Cargo.toml index bf117154e..6d722db1d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,7 +54,7 @@ r2d2 = "0.8" r2d2_sqlite = "0.19" rand = "0.7" regex = "1.5" -rusqlite = "0.26" +rusqlite = { version = "0.26", features = ["sqlcipher"] } rust-hsluv = "0.1" rustyline = { version = "9", optional = true } sanitize-filename = "0.3" @@ -120,5 +120,5 @@ harness = false default = ["vendored"] internals = [] repl = ["internals", "rustyline", "log", "pretty_env_logger", "ansi_term", "dirs"] -vendored = ["async-native-tls/vendored", "async-smtp/native-tls-vendored", "rusqlite/bundled"] +vendored = ["async-native-tls/vendored", "async-smtp/native-tls-vendored", "rusqlite/bundled-sqlcipher-vendored-openssl"] nightly = ["pgp/nightly"]