diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-08-28 03:38:42 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-08-28 03:38:42 +0000 |
commit | 2ea23ceb416d2a6c84a752d5a36afaf754b7c644 (patch) | |
tree | 4e08f16c25c3f7080c454bead5791880587077e7 /Cargo.toml | |
parent | Conditionally enable TLS only on supported platforms (diff) | |
download | miniserve-2ea23ceb416d2a6c84a752d5a36afaf754b7c644.tar.gz miniserve-2ea23ceb416d2a6c84a752d5a36afaf754b7c644.zip |
Switch TLS conditional compilation to feature
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -51,14 +51,15 @@ httparse = "1" http = "0.2" bytes = "1" atty = "0.2" +rustls = { version = "0.18", optional = true } -# Use rustls only on architecturs supported by ring. +[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 -[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"] } +tls = ["rustls", "actix-web/rustls"] [dev-dependencies] assert_cmd = "2" |