From a012c0f9357bfdccec26e513693a411f7bf1dcb8 Mon Sep 17 00:00:00 2001 From: Waveplate Date: Sat, 2 Nov 2024 19:12:23 -0700 Subject: [PATCH] use rustls instead of openssl --- Cargo.toml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c0fa63c..555ab28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,19 +15,16 @@ codegen-units = 1 opt-level = "z" strip = true # Automatically strip symbols from the binary. -[target.x86_64-unknown-linux-musl] -linker = "musl-gcc" - [[bin]] name = "img2irc" path = "src/main.rs" [dependencies] tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] } -reqwest = "0.11.14" +reqwest = { version = "0.11.14", default-features = false, features = ["rustls-tls"] } photon-rs = { version = "0.3.2", default-features = false, git = "https://github.com/silvia-odwyer/photon", rev = "3b72d357848cd76be9363e87ad0cd02a19b988d2" } clap = { version = "4.2.0", features = ["cargo", "derive"] } url = "2.3.1" -[target.'cfg(target_env = "musl")'.dependencies] -openssl-sys = "0.9.102" +[build-dependencies] +cc = "1.0"