aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2021-08-27 16:23:14 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2021-08-27 16:23:14 +0000
commitc79bcaae0433d4f13901540221af4e1830e1d44f (patch)
tree4379c0c5e161b40830c3ee3571d4f5f48b307d26 /Cargo.toml
parent(cargo-release) start next development iteration 0.15.1-alpha.0 (diff)
downloadminiserve-c79bcaae0433d4f13901540221af4e1830e1d44f.tar.gz
miniserve-c79bcaae0433d4f13901540221af4e1830e1d44f.zip
Conditionally enable TLS only on supported platforms
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml10
1 files changed, 9 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index d317ebb..67701dd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,6 +9,7 @@ readme = "README.md"
keywords = ["serve", "http-server", "static-files", "http", "server"]
categories = ["command-line-utilities", "network-programming", "web-programming::http-server"]
edition = "2018"
+resolver = "2"
[profile.release]
lto = true
@@ -17,7 +18,7 @@ codegen-units = 1
panic = 'abort'
[dependencies]
-actix-web = { version = "3", features = ["rustls"] }
+actix-web = "3"
actix-files = "0.5"
actix-multipart = "0.3"
actix-web-httpauth = "0.5"
@@ -50,7 +51,14 @@ httparse = "1"
http = "0.2"
bytes = "1"
atty = "0.2"
+
+# Use rustls only on architecturs supported by ring.
+# See also https://github.com/briansmith/ring/issues/1182
+# and https://github.com/briansmith/ring/issues/562
+# and https://github.com/briansmith/ring/issues/1367
+[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64", target_arch = "arm"))'.dependencies]
rustls = "0.18"
+actix-web = { version = "3", features = ["rustls"] }
[dev-dependencies]
assert_cmd = "2"