Skip to content

Commit df8dfe0

Browse files
committed
v0.29.0
1 parent 7f34695 commit df8dfe0

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tcp-stream"
3-
version = "0.28.0"
3+
version = "0.29.0"
44
authors = ["Marc-Antoine Perennou <[email protected]>"]
55
edition = "2021"
66
description = "std::net::TcpStream on steroids"
@@ -15,7 +15,7 @@ rust-version = "1.63.0"
1515
name = "tcp_stream"
1616

1717
[features]
18-
default = ["rustls--aws_lc_rs"]
18+
default = ["rustls-native-certs", "rustls--aws_lc_rs"]
1919
native-tls = ["dep:native-tls", "rustls-pemfile"]
2020
rustls-webpki-roots-certs = ["rustls-common", "rustls-connector/webpki-roots-certs"]
2121
rustls-native-certs = ["rustls-common", "rustls-connector/native-certs"]
@@ -24,8 +24,8 @@ vendored-openssl = ["openssl/vendored"]
2424

2525
# rustls crypto providers. Choose at least one. Otherwise, runtime errors.
2626
# See https://docs.rs/rustls/latest/rustls/#crate-features. for more info
27-
rustls--aws_lc_rs = ["rustls-native-certs", "rustls-connector/rustls--aws_lc_rs"] # default, but doesn't build everywhere
28-
rustls--ring = ["rustls-native-certs", "rustls-connector/rustls--ring"] # more compatible, (e.g., easily builds on Windows)
27+
rustls--aws_lc_rs = ["rustls-connector/rustls--aws_lc_rs"] # default, but doesn't build everywhere
28+
rustls--ring = ["rustls-connector/rustls--ring"] # more compatible, (e.g., easily builds on Windows)
2929

3030
[dependencies]
3131
cfg-if = "^1.0"

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66

77
tcp-stream is a library aiming at providing TLS support to std::net::TcpStream
88

9+
## Warning about crypto backends for rustls
10+
11+
A crypto implementation must be enabled in rustls using feature flags.
12+
We mimic what rustls does, providing one feature flag per implementation and enabling the same as rustls by default.
13+
Available options are:
14+
- `rustls--aws_lc_rs` (default)
15+
- `rustls--ring`
16+
917
# Examples
1018

1119
To connect to a remote server:

0 commit comments

Comments
 (0)