Build openssl statically

This commit is contained in:
Michael Vines 2021-11-30 21:54:28 -08:00
parent 0212a71d3e
commit 3d21b062cc
2 changed files with 19 additions and 3 deletions

15
Cargo.lock generated
View File

@ -76,9 +76,9 @@ checksum = "8b26702f315f53b6071259e15dd9d64528213b44d61de1ec926eca7715d62203"
[[package]]
name = "arc-swap"
version = "1.4.0"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6df5aef5c5830360ce5218cecb8f018af3438af5686ae945094affc86fdec63"
checksum = "c5d78ce20460b82d3fa150275ed9d55e21064fc7951177baacf86a145c4a4b1f"
[[package]]
name = "arrayref"
@ -2743,6 +2743,15 @@ version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a"
[[package]]
name = "openssl-src"
version = "300.0.2+3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14a760a11390b1a5daf72074d4f6ff1a6e772534ae191f999f57e9ee8146d1fb"
dependencies = [
"cc",
]
[[package]]
name = "openssl-sys"
version = "0.9.70"
@ -2752,6 +2761,7 @@ dependencies = [
"autocfg 1.0.1",
"cc",
"libc",
"openssl-src",
"pkg-config",
"vcpkg",
]
@ -5711,6 +5721,7 @@ dependencies = [
"flate2",
"goauth",
"log 0.4.14",
"openssl",
"prost",
"prost-types",
"serde",

View File

@ -21,7 +21,7 @@ prost = "0.9.0"
prost-types = "0.9.0"
serde = "1.0.130"
serde_derive = "1.0.103"
smpl_jwt = "0.6.0"
smpl_jwt = "0.6.1"
solana-metrics = { path = "../metrics", version = "=1.9.0" }
solana-sdk = { path = "../sdk", version = "=1.9.0" }
solana-storage-proto = { path = "../storage-proto", version = "=1.9.0" }
@ -30,6 +30,11 @@ thiserror = "1.0"
tonic = { version = "0.6.1", features = ["tls", "transport"] }
zstd = "0.9.0"
# openssl is a dependency of the goauth and smpl_jwt crates, but explicitly
# declare it here as well to activate the "vendored" feature that builds OpenSSL
# statically
openssl = { version = "0.10", features = ["vendored"] }
[lib]
crate-type = ["lib"]
name = "solana_storage_bigtable"