From 1e28b2546af720b9e8e83db7a3cad0797b7fa645 Mon Sep 17 00:00:00 2001 From: Joe Bellus Date: Wed, 28 Sep 2022 12:50:46 -0400 Subject: [PATCH] Added openssl to musl build --- .drone.yml | 2 +- Cargo.lock | 11 +++++++++++ Cargo.toml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index eb79656..9da0a0d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -52,7 +52,7 @@ steps: commands: - cp -R /app/ui ./ui/build - rustup target add x86_64-unknown-linux-musl - - apt update && apt install -y musl-tools musl-dev + - apt update && apt install -y musl-tools musl-dev libssl-dev - update-ca-certificates - cargo build --target x86_64-unknown-linux-musl --release - mkdir /app/build diff --git a/Cargo.lock b/Cargo.lock index e9ec9c0..a9ca3fb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -893,6 +893,7 @@ dependencies = [ "smallvec", "thiserror", "tokio", + "tokio-native-tls", "tokio-stream", "tokio-util", "tracing", @@ -1331,6 +1332,16 @@ dependencies = [ "syn", ] +[[package]] +name = "tokio-native-tls" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" +dependencies = [ + "native-tls", + "tokio", +] + [[package]] name = "tokio-stream" version = "0.1.10" diff --git a/Cargo.toml b/Cargo.toml index f13274d..8af7f98 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ serde_json = "1.0.85" tokio = { version = "1.21.1", features = ["full"] } bytes = "1.2.1" lettre = "0.10.1" -poem = { version = "1.3.44", features = ["compression", "embed"] } +poem = { version = "1.3.44", features = ["compression", "embed", "native-tls"] } rust-embed = "6.4.1" tracing = "0.1.36" tracing-subscriber = "0.3.15"