From 41999eeb0ce417560c086ee75a2e7c5fd26b4e2c Mon Sep 17 00:00:00 2001 From: Daniel Abramov Date: Mon, 10 May 2021 12:27:28 +0200 Subject: [PATCH] Change default TLS features Closes #202. --- Cargo.toml | 2 +- README.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5b579c9..dc123e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ edition = "2018" all-features = true [features] -default = ["native-tls"] +default = [] native-tls = ["native-tls-crate"] native-tls-vendored = ["native-tls", "native-tls-crate/vendored"] rustls-tls = ["rustls", "webpki", "webpki-roots"] diff --git a/README.md b/README.md index 38de089..40df7f1 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,8 @@ Features Tungstenite provides a complete implementation of the WebSocket specification. TLS is supported on all platforms using native-tls or rustls available through the `native-tls` -and `rustls-tls` feature flags. +and `rustls-tls` feature flags. By default **no TLS feature is activated**, so make sure you +use `native-tls` or `rustls-tls` feature if you need support of the TLS. There is no support for permessage-deflate at the moment. It's planned.