diff --git a/CHANGELOG.md b/CHANGELOG.md index 031cfd6..094a10d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/Cargo.toml b/Cargo.toml index ab63ef8..871fe96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/gio.rs b/src/gio.rs index 822f169..a64febb 100644 --- a/src/gio.rs +++ b/src/gio.rs @@ -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> { + #[allow(dead_code)] io_stream: T, read: gio::InputStreamAsyncRead, write: gio::OutputStreamAsyncWrite,