diff options
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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,15 @@ httparse = "1" http = "0.2" bytes = "1" atty = "0.2" -rustls = "0.18" +rustls = { version = "0.18", optional = true } + +[features] +default = ["tls"] +# This feature allows us to use rustls only on architectures 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 +tls = ["rustls", "actix-web/rustls"] [dev-dependencies] assert_cmd = "2" |