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/), 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). 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 ## [0.16.1] - 2021-12-06
### Fixed ### Fixed
- Fix connecting to URLs containing plain IPv6 addresses in brackets. - Fix connecting to URLs containing plain IPv6 addresses in brackets.

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

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

Loading…
Cancel
Save