Skip to content
Snippets Groups Projects
Unverified Commit 0c1ae072 authored by LinFeng's avatar LinFeng Committed by GitHub
Browse files

Merge pull request #66 from k4yt3x/master

Strip symbols and add crate openssl to and allow the binary to run in distroless containers
parents b0ecc5a5 4413bd2b
No related branches found
No related tags found
No related merge requests found
...@@ -467,6 +467,14 @@ name = "openssl-probe" ...@@ -467,6 +467,14 @@ name = "openssl-probe"
version = "0.1.2" version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "openssl-src"
version = "111.18.0+1.1.1n"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"cc 1.0.58 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]] [[package]]
name = "openssl-sys" name = "openssl-sys"
version = "0.9.58" version = "0.9.58"
...@@ -475,6 +483,7 @@ dependencies = [ ...@@ -475,6 +483,7 @@ dependencies = [
"autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"cc 1.0.58 (registry+https://github.com/rust-lang/crates.io-index)", "cc 1.0.58 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.72 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.72 (registry+https://github.com/rust-lang/crates.io-index)",
"openssl-src 111.18.0+1.1.1n (registry+https://github.com/rust-lang/crates.io-index)",
"pkg-config 0.3.18 (registry+https://github.com/rust-lang/crates.io-index)", "pkg-config 0.3.18 (registry+https://github.com/rust-lang/crates.io-index)",
"vcpkg 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "vcpkg 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
...@@ -805,6 +814,7 @@ dependencies = [ ...@@ -805,6 +814,7 @@ dependencies = [
"mime_guess 2.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "mime_guess 2.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
"multipart 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "multipart 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)",
"open 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "open 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"openssl 0.10.30 (registry+https://github.com/rust-lang/crates.io-index)",
"path-dedot 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "path-dedot 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
"percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"pretty-bytes 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "pretty-bytes 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
...@@ -1073,6 +1083,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" ...@@ -1073,6 +1083,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum open 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7c283bf0114efea9e42f1a60edea9859e8c47528eae09d01df4b29c1e489cc48" "checksum open 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7c283bf0114efea9e42f1a60edea9859e8c47528eae09d01df4b29c1e489cc48"
"checksum openssl 0.10.30 (registry+https://github.com/rust-lang/crates.io-index)" = "8d575eff3665419f9b83678ff2815858ad9d11567e082f5ac1814baba4e2bcb4" "checksum openssl 0.10.30 (registry+https://github.com/rust-lang/crates.io-index)" = "8d575eff3665419f9b83678ff2815858ad9d11567e082f5ac1814baba4e2bcb4"
"checksum openssl-probe 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de" "checksum openssl-probe 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de"
"checksum openssl-src 111.18.0+1.1.1n (registry+https://github.com/rust-lang/crates.io-index)" = "7897a926e1e8d00219127dc020130eca4292e5ca666dd592480d72c3eca2ff6c"
"checksum openssl-sys 0.9.58 (registry+https://github.com/rust-lang/crates.io-index)" = "a842db4709b604f0fe5d1170ae3565899be2ad3d9cbc72dedc789ac0511f78de" "checksum openssl-sys 0.9.58 (registry+https://github.com/rust-lang/crates.io-index)" = "a842db4709b604f0fe5d1170ae3565899be2ad3d9cbc72dedc789ac0511f78de"
"checksum path-dedot 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "45c58ab1edb03f77d0bb3f08e4a179dd43ce9bc8eab9867ec53a78285ea3039b" "checksum path-dedot 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "45c58ab1edb03f77d0bb3f08e4a179dd43ce9bc8eab9867ec53a78285ea3039b"
"checksum percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" "checksum percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831"
......
...@@ -20,9 +20,10 @@ filetime = "0.2.7" ...@@ -20,9 +20,10 @@ filetime = "0.2.7"
pretty-bytes = "0.2.2" pretty-bytes = "0.2.2"
rand = "0.8.3" rand = "0.8.3"
url = "2.1.0" url = "2.1.0"
hyper-native-tls = {version = "0.3.0", optional=true} hyper-native-tls = { version = "0.3.0", optional = true }
mime_guess = "2.0" mime_guess = "2.0"
open = "1" open = "1"
openssl = { version = "0.10", features = ["vendored"] }
# Iron crates # Iron crates
iron = "0.6.1" iron = "0.6.1"
iron-cors = "0.8.0" iron-cors = "0.8.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment