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.
This commit is contained in:
P Stark 2022-08-10 22:16:31 +02:00 committed by GitHub
parent df3b4ae78f
commit 0fb0ac7ab1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"