diff --git a/Cargo.lock b/Cargo.lock index 2cf11c9..6cf1686 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -989,6 +989,7 @@ dependencies = [ "hex", "home", "log", + "openssl", "pretty_env_logger", "rusqlite", "serde", @@ -1122,6 +1123,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "openssl-src" +version = "300.3.1+3.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7259953d42a81bf137fbbd73bd30a8e1914d6dce43c2b90ed575783a22608b91" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.103" @@ -1130,6 +1140,7 @@ checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6" dependencies = [ "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] diff --git a/Cargo.toml b/Cargo.toml index bf624e2..2e18669 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,6 +24,7 @@ futures-util = "0.3.30" hex = "0.4.3" home = "0.5.9" log = "0.4.22" +openssl = { version = "0.10.66", features = ["vendored"], optional = true } pretty_env_logger = "0.5.0" rusqlite = { version = "0.32.1", features = ["bundled"], optional = true } serde = { version = "1.0.204", features = ["derive"] } @@ -46,7 +47,7 @@ path = "src/main.rs" [features] default = ["sled"] sled = ["sled_crate"] -sqlite = ["rusqlite"] +sqlite = ["rusqlite", "openssl"] [profile.release] lto = true