From 9369893ad6f0708762c77746bfbf80275b99dc7e Mon Sep 17 00:00:00 2001 From: Carlos Kieliszewski Date: Fri, 9 Jun 2023 06:12:17 -0600 Subject: [PATCH] Added rustls feature This change introduces the rustls to enable the usage of rustls for encryption matters (instead of the system's native provider). Doing so can offer advantages especially in cross-compilation environments, where the need for non-Rust code compilation is reduced. --- CHANGELOG.md | 5 +++++ Cargo.toml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8c59d5..25ccb72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +Unreleased +---------- +- Added `rustls` feature to use `rustls` as the encryption provider + (instead of whatever is native to the system) + 0.13.0 ------ - Bumped `tokio-tungstenite` dependency to `0.23` diff --git a/Cargo.toml b/Cargo.toml index d76b8a0..ffac75b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,8 @@ data. include = ["src/**/*", "LICENSE", "README.md", "CHANGELOG.md"] [features] +# Enable to use rusttls for cryptography over system's native variant. +rustls = ["tokio-tungstenite/__rustls-tls"] test = ["tokio-tungstenite/connect"] [dependencies]