Update dependencies and release 0.25.0

This commit is contained in:
Sebastian Dröge 2024-02-09 10:35:18 +02:00 committed by Sebastian Dröge
parent 30a1f7812b
commit 855a9b18e5
3 changed files with 11 additions and 6 deletions

View File

@ -4,6 +4,11 @@ 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.25.0] - 2024-02-09
### Changed
- Update to glib/gio 0.19.
- Update to async-tls 0.13.
## [0.24.0] - 2023-12-08 ## [0.24.0] - 2023-12-08
### Changed ### Changed
- Update MSRV from 1.70 to 1.61. - Update MSRV from 1.70 to 1.61.

View File

@ -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.24.0" version = "0.25.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"]
@ -59,7 +59,7 @@ version = "0.10"
[dependencies.real-async-tls] [dependencies.real-async-tls]
optional = true optional = true
version = "0.12" version = "0.13"
package = "async-tls" package = "async-tls"
[dependencies.real-async-native-tls] [dependencies.real-async-native-tls]
@ -101,11 +101,11 @@ version = "0.26"
[dependencies.gio] [dependencies.gio]
optional = true optional = true
version = "0.18" version = "0.19"
[dependencies.glib] [dependencies.glib]
optional = true optional = true
version = "0.18" version = "0.19"
[dev-dependencies] [dev-dependencies]
futures = "0.3" futures = "0.3"

View File

@ -12,7 +12,7 @@ async fn accept_connection(stream: SocketConnection) -> Result<()> {
.remote_address() .remote_address()
.expect("SocketConnection should have a remote address"); .expect("SocketConnection should have a remote address");
println!("Peer address: {}", addr); println!("Peer address: {}", addr.to_string());
let mut ws_stream = accept_async(stream) let mut ws_stream = accept_async(stream)
.await .await
.expect("Error during the websocket handshake occurred"); .expect("Error during the websocket handshake occurred");
@ -43,7 +43,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
SocketProtocol::Tcp, SocketProtocol::Tcp,
glib::Object::NONE, glib::Object::NONE,
)?; )?;
println!("Listening on: {}", inetaddr); println!("Listening on: {}", inetaddr.to_string());
service.connect_incoming(|_service, connection, _| { service.connect_incoming(|_service, connection, _| {
let stream = connection.clone(); let stream = connection.clone();