feat: use vendored openssl to allow MUSL as a build target

to avoid relying on recent glibc versions on production servers
This commit is contained in:
Ninjdai 2025-08-03 02:20:05 +02:00
parent 37153c6e36
commit 6ddb24e563
2 changed files with 12 additions and 0 deletions

11
Cargo.lock generated
View file

@ -50,6 +50,7 @@ dependencies = [
"inquire", "inquire",
"jsonwebtoken", "jsonwebtoken",
"log", "log",
"openssl",
"password-hash", "password-hash",
"pretty_env_logger", "pretty_env_logger",
"rand_core 0.9.3", "rand_core 0.9.3",
@ -1801,6 +1802,15 @@ version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
[[package]]
name = "openssl-src"
version = "300.5.1+3.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "735230c832b28c000e3bc117119e6466a663ec73506bc0a9907ea4187508e42a"
dependencies = [
"cc",
]
[[package]] [[package]]
name = "openssl-sys" name = "openssl-sys"
version = "0.9.109" version = "0.9.109"
@ -1809,6 +1819,7 @@ checksum = "90096e2e47630d78b7d1c20952dc621f957103f8bc2c8359ec81290d75238571"
dependencies = [ dependencies = [
"cc", "cc",
"libc", "libc",
"openssl-src",
"pkg-config", "pkg-config",
"vcpkg", "vcpkg",
] ]

View file

@ -25,4 +25,5 @@ inquire = "0.7.5"
rand_core = { version = "0.9.3", features = ["os_rng"] } rand_core = { version = "0.9.3", features = ["os_rng"] }
password-hash = { version = "0.5.0", features = ["getrandom"] } password-hash = { version = "0.5.0", features = ["getrandom"] }
jsonwebtoken = "9.3.1" jsonwebtoken = "9.3.1"
openssl = { version = "0.10.73", features = ["vendored"] }