Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rust-native-tls and dev-dependencies to latest #32

Merged
merged 2 commits into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ categories = ["asynchronous", "cryptography", "network-programming"]


[dependencies]
native-tls = "0.2.3"
native-tls = { version = "0.2.8", features = ["alpn"] }
thiserror = "1.0.9"
futures-util = { version = "0.3.1", features = ["io"], optional = true }
tokio = { version = "1.0", default-features = false, features = ["io-util"], optional = true }
Expand All @@ -31,10 +31,10 @@ runtime-async-std = ["futures-util"]
runtime-tokio = ["tokio"]

[dev-dependencies]
env_logger = "0.7.1"
env_logger = "0.9.0"
async-std = { version = "1.6.0", features = ["attributes"] }
tokio = { version = "1.0", features = ["full"] }
cfg-if = "0.1.10"
cfg-if = "1.0.0"
futures = "0.3.1"

[[test]]
Expand Down
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,14 @@ mod connect {
self
}

/// Request specific protocols through ALPN (Application-Layer Protocol Negotiation).
///
/// Defaults to none
pub fn request_alpns(mut self, protocols: &[&str]) -> Self {
self.builder.request_alpns(protocols);
self
}

/// Controls the use of certificate validation.
///
/// Defaults to false.
Expand Down
2 changes: 1 addition & 1 deletion tests/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ async fn one_byte_at_a_time() {
match socket.read_exact(&mut buf).await {
Ok(_) => data.extend_from_slice(&buf),
Err(ref err) if err.kind() == std::io::ErrorKind::UnexpectedEof => break,
Err(err) => panic!(err),
Err(err) => panic!("{}", err),
}
}
data
Expand Down