Skip to content

Commit 487b1b9

Browse files
committed
prepare 0.2 release
1 parent 09c8e10 commit 487b1b9

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ members = [
55
]
66

77
[workspace.dependencies]
8-
tonic-tls = { path = "tonic-tls" }
8+
tonic-tls = { path = "tonic-tls" , default-features = true}
99

1010
tokio = "1"
1111
tokio-rustls = { version = "0.26", default-features = false }

tonic-tls-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rcgen.workspace = true
1717
tokio-util.workspace = true
1818
tokio-stream.workspace = true
1919
prost.workspace = true
20-
tonic-tls = { workspace = true, features = ["native", "rustls", "openssl", "schannel"] }
20+
tonic-tls = { workspace = true }
2121
futures.workspace = true
2222
tokio-native-tls.workspace = true
2323
tokio-schannel.workspace = true

tonic-tls/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "tonic-tls"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55
license = "MIT"
66
authors = ["[email protected]"]
77
repository = "https://github.com/youyuanwu/tonic-tls"
8-
documentation = "https://github.com/youyuanwu/tonic-tls"
8+
documentation = "https://docs.rs/tonic-tls/latest/tonic_tls/"
99
description = "Tls wrappers for tonic."
1010
categories = ["web-programming", "network-programming"]
1111
keywords = ["gRPC", "tls", "rustls", "native-tls"]
@@ -37,7 +37,7 @@ tokio-schannel = { workspace = true, optional = true}
3737
schannel = { workspace = true, optional = true }
3838

3939
[features]
40-
default = []
40+
default = ["native", "rustls", "openssl", "schannel" ]
4141
native = ["dep:tokio-native-tls"]
4242
rustls = ["dep:tokio-rustls"]
4343
openssl = ["dep:tokio-openssl", "dep:openssl"]

tonic-tls/src/openssl/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ where
120120
///
121121
/// This type will be accessible through [request extensions](tonic::Request::extensions).
122122
///
123-
/// See [`Connected`](tonic::transport::server::Connected) for more details.
123+
/// See [`Connected`] for more details.
124124
#[derive(Debug, Clone)]
125125
pub struct SslConnectInfo<T> {
126126
inner: T,

tonic-tls/src/rustls/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ where
106106
///
107107
/// This type will be accessible through [request extensions](tonic::Request::extensions).
108108
///
109-
/// See [`Connected`](tonic::transport::server::Connected) for more details.
109+
/// See [`Connected`] for more details.
110110
#[derive(Debug, Clone)]
111111
pub struct SslConnectInfo<T> {
112112
inner: T,

tonic-tls/src/schannel/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ impl<S: Connected + AsyncRead + AsyncWrite> Connected for TlsStream<S> {
7676
let certs = inner
7777
.peer_certificate()
7878
.ok()
79-
.and_then(|x| Some(Arc::new(x)));
79+
.map(Arc::new);
8080
SslConnectInfo {
8181
inner: conn,
82-
certs: certs.into(),
82+
certs,
8383
}
8484
}
8585
}
@@ -122,7 +122,7 @@ where
122122
///
123123
/// This type will be accessible through [request extensions](tonic::Request::extensions).
124124
///
125-
/// See [`Connected`](tonic::transport::server::Connected) for more details.
125+
/// See [`Connected`] for more details.
126126
#[derive(Debug, Clone)]
127127
pub struct SslConnectInfo<T> {
128128
inner: T,

0 commit comments

Comments
 (0)