Update tungstenite to 0.17, async-native-tls to 0.4 and glib/gio to 0.15

pull/103/head 0.17.0
Sebastian Dröge 2 years ago committed by Sebastian Dröge
parent dfa69eaea4
commit 4cc0ffd5f9
  1. 6
      CHANGELOG.md
  2. 10
      Cargo.toml
  3. 3
      src/gio.rs

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.17.0] - 2022-17-07
### Changed
- Update to tungstenite 0.17.
- Update to gio/glib 0.15.
- Update to async-native-tls 0.4.
## [0.16.1] - 2021-12-06
### Fixed
- Fix connecting to URLs containing plain IPv6 addresses in brackets.

@ -8,7 +8,7 @@ license = "MIT"
homepage = "https://github.com/sdroege/async-tungstenite"
repository = "https://github.com/sdroege/async-tungstenite"
documentation = "https://docs.rs/async-tungstenite"
version = "0.16.1"
version = "0.17.0"
edition = "2018"
readme = "README.md"
include = ["examples/**/*", "src/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
@ -36,7 +36,7 @@ futures-io = { version = "0.3", default-features = false, features = ["std"] }
pin-project-lite = "0.2"
[dependencies.tungstenite]
version = "0.16.0"
version = "0.17.0"
default-features = false
[dependencies.async-std]
@ -59,7 +59,7 @@ package = "async-tls"
[dependencies.real-async-native-tls]
optional = true
version = "0.3.0"
version = "0.4.0"
package = "async-native-tls"
[dependencies.real-native-tls]
@ -92,11 +92,11 @@ version = "0.22"
[dependencies.gio]
optional = true
version = "0.14"
version = "0.15"
[dependencies.glib]
optional = true
version = "0.14"
version = "0.15"
[dev-dependencies]
futures = "0.3"

@ -52,7 +52,7 @@ where
let connectable = gio::NetworkAddress::new(domain.as_str(), port);
let socket = client
.connect_async_future(&connectable)
.connect_future(&connectable)
.await
.map_err(to_std_io_error)?;
let socket = IOStreamAsyncReadWrite::new(socket)
@ -64,6 +64,7 @@ where
/// Adapter for `gio::IOStream` to provide `AsyncRead` and `AsyncWrite`.
#[derive(Debug)]
pub struct IOStreamAsyncReadWrite<T: IsA<gio::IOStream>> {
#[allow(dead_code)]
io_stream: T,
read: gio::InputStreamAsyncRead<gio::PollableInputStream>,
write: gio::OutputStreamAsyncWrite<gio::PollableOutputStream>,

Loading…
Cancel
Save