diff --git a/src/main.rs b/src/main.rs index 3217cbc..91dde65 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,13 @@ +// Needed for building in Docker container +// See https://github.com/clux/muslrust?tab=readme-ov-file#diesel-and-pq-builds +// See https://github.com/sgrif/pq-sys/issues/25 +#[cfg(target = "x86_64-unknown-linux-musl")] +extern crate openssl; + +#[cfg(target = "x86_64-unknown-linux-musl")] +#[macro_use] +extern crate diesel; + #[cfg(feature = "ssr")] #[actix_web::main] async fn main() -> std::io::Result<()> {