From 0fb0ac7ab1c82cd3c3cf0874b9ae73ce9f0ad775 Mon Sep 17 00:00:00 2001 From: P Stark Date: Wed, 10 Aug 2022 22:16:31 +0200 Subject: [PATCH] server: statically link to sqlite3 when targeting musl (#231) - fix #228 - the musl libc is used on Alpine, a minimal linux distribution commonly used in docker images. It's also used on OpenWRT which might be of interest to innernet. --- server/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/Cargo.toml b/server/Cargo.toml index 255c57d..22d0f0c 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -47,6 +47,9 @@ wireguard-control = { path = "../wireguard-control" } [target.'cfg(target_os = "linux")'.dependencies] socket2 = { version = "0.4", features = ["all"] } +[target.'cfg(target_env = "musl")'.dependencies] +rusqlite = { version = "0.28", features = ["bundled"] } + [dev-dependencies] anyhow = "1" tempfile = "3"