Sebastian Dröge
57770cfbf2
Release 0.25.1
2024-04-03 12:59:34 +03:00
Graeme Coupar
462ab0c608
Fix tokio support for async_tls
2024-02-16 14:01:15 +01:00
Sebastian Dröge
855a9b18e5
Update dependencies and release 0.25.0
2024-02-09 09:42:50 +01:00
Constantin Nickel
30a1f7812b
Simplify response body type in `server-custom-accept` example
...
The empty `Full<T>::default()` body behaves like the `Empty` implementation.
2023-12-31 11:54:57 +02:00
Sebastian Dröge
dcedd5c544
Check 1.61 MSRV on the CI
2023-12-08 12:49:33 +02:00
Sebastian Dröge
8910e44c7f
Update CHANGELOG.md for 0.24.0
2023-12-08 12:49:33 +02:00
Sebastian Dröge
3f2c086eed
Update version to 0.24.0
2023-12-08 12:49:33 +02:00
Sebastian Dröge
ba220c7354
Lower MSRV to 1.61
...
As that's what actually works.
2023-12-08 12:49:33 +02:00
Constantin Nickel
d26431f73c
Update `server-custom-accept` example to `hyper` v1
2023-12-07 20:33:25 +02:00
Constantin Nickel
2b1fa55927
Update `tokio-rustls` to 0.25 and `rustls-native-certs` to 0.7
2023-12-07 12:29:35 +02:00
Constantin Nickel
b55f84ac18
Update `webpki-roots` to 0.26
2023-12-07 12:29:35 +02:00
Constantin Nickel
c25abd8bd7
Update `tungstenite` to 0.21
2023-12-07 12:29:35 +02:00
Constantin Nickel
f33eba1b2c
Remove unnecessary docker setup action
...
Docker is already installed on Ubuntu images.
2023-12-07 12:18:56 +02:00
Sebastian Dröge
c4fb3afb8a
Fix branch name in examples README.md
2023-08-08 16:14:08 +03:00
Sebastian Dröge
f1243392ea
Update to version to 0.23.0
2023-08-08 16:13:33 +03:00
Alex Butler
968d9d32f8
tweak doc
2023-08-08 16:10:28 +03:00
Alex Butler
0126692c38
poll_ready: try to flush when !ready
2023-08-08 16:10:28 +03:00
Alex Butler
dcefd9b854
poll_ready pending after WouldBlock errors
2023-08-08 16:10:28 +03:00
Sebastian Dröge
4ada42d4ec
Fix server-headers example
2023-08-08 16:10:28 +03:00
oskgo
089618600d
typo
2023-08-08 16:10:28 +03:00
Alex Butler
8005a6c84a
Fix example doc
2023-08-08 16:10:28 +03:00
Sergey Kolmiller
f0319db146
create server-headers example ( #269 )
...
* create server-headers example
* fixed fmt errors
2023-08-08 16:10:28 +03:00
Sebastian Dröge
f63c555544
Update MSRV to 1.70
2023-08-08 16:10:28 +03:00
Sebastian Dröge
1e6cc7fd69
Remove unused import
2023-08-08 16:10:28 +03:00
Sebastian Dröge
7dd824c92e
Update to glib/gio 0.18
2023-08-08 16:10:28 +03:00
Sebastian Dröge
02a96b2e0c
Update to webpki-roots 0.25
2023-08-08 16:10:28 +03:00
Sebastian Dröge
8eba873db3
Fix code style
2023-08-08 16:10:28 +03:00
Alex Butler
ab9ea1c9f6
Prepare update to tungstenite 0.20
2023-08-08 16:10:28 +03:00
Alex Butler
3f6e4207e9
Do not flush on each poll_ready call
2023-08-08 16:10:28 +03:00
Benoît CORTIER
79e4830611
Gracefully handle invalid native root certificates
...
Before this patch, the `rustls::RootCertStore::add` method was used
to add all the root certificates found by `rustls_native_certs` crate.
This is a problem when an ancient or invalid certificate is present
in the native root store. `rustls` documentation says the following:
> This is suitable for a small set of root certificates that
> are expected to parse successfully. For large collections of
> roots (for example from a system store) it is expected that
> some of them might not be valid according to the rules `rustls`
> implements. As long as a relatively limited number of certificates
> are affected, this should not be a cause for concern. Use
> `RootCertStore::add_parsable_certificates` in order to add as many
> valid roots as possible and to understand how many certificates have
> been diagnosed as malformed.
With this patch, `RootCertStore::add_parsable_certificates` is used
instead for maximal compability with system store.
> Parse the given DER-encoded certificates and add all that can be
> parsed in a best-effort fashion.
>
> This is because large collections of root certificates often include
> ancient or syntactically invalid certificates.
2023-08-08 16:10:28 +03:00
Daniel Abramov
f802474a90
Update README to include performance note
2023-08-08 16:10:28 +03:00
Daniel Abramov
54a1817176
Remove boilerplace in `poll_flush()`
2023-08-08 16:10:28 +03:00
Sebastian Dröge
59a8bf29db
Update version to 0.22.2
2023-05-20 13:40:22 +03:00
ComplexSpaces
2365647978
Bump MSRV to 1.64
2023-05-18 09:11:21 +03:00
ComplexSpaces
e935f4078b
Add tokio-rustls-manual-roots feature
...
This allows dropping the forced dependency on webpki-roots when using
a custom connector that provides its own TLS roots instead.
2023-05-18 09:11:21 +03:00
Sebastian Dröge
7d844cb711
Update version to 0.22.1
2023-05-08 10:36:14 +03:00
Sebastian Dröge
bd70128079
Check MSRV on the CI
2023-05-08 10:35:50 +03:00
Benoît CORTIER
068a9a6984
Fix poll_flush on closed connection
...
Flushing when there is nothing to send anymore should succeed.
Relevant code in `tungstenite` crate code:
e5efe537b8/src/protocol/mod.rs (L390)
2023-05-08 10:31:13 +03:00
Sebastian Dröge
fcd8632532
Set rust-version in Cargo.toml
2023-05-08 10:30:39 +03:00
Sebastian Dröge
ff8e78d88f
Update CHANGELOG.md for 0.22
2023-04-27 09:58:10 +03:00
CGQAQ
fd81cce2cc
feat: upgrade tokio-rustls to 0.24
2023-04-27 09:56:04 +03:00
Sebastian Dröge
9926ffd672
Update version to 0.21.0
2023-04-12 15:33:24 +03:00
Guillaume Desmottes
c7102a649b
update deps
...
Didn't update 'tokio-rustls' as tungstenite still uses the older one.
2023-04-12 15:02:49 +03:00
Guillaume Desmottes
0a299fb5fe
examples: gio-echo-server: fix clippy warnings
2023-04-12 15:02:49 +03:00
Carlos Martín Nieto
7805e80aec
gio-echo-server: add an example with a SocketService
...
This lets us use the SocketService we might already want to use and use it for a
websocket server.
2023-03-22 12:51:12 +02:00
Carlos Martín Nieto
fe1c2aeb95
gio-echo: explicitly close the stream
...
Not doing so means we rudely disconnect from the socket without clong out our
websocket stream
2023-03-22 12:51:12 +02:00
Carlos Martín Nieto
f8e6c3a8c3
gio: add accept_async and related functions
...
These are the server-side functions just like we have them e.g. for tokio so we
can run servers.
2023-03-22 12:51:12 +02:00
Sebastian Dröge
da62f071f5
Release 0.20.0
2023-02-10 12:55:50 +02:00
Sebastian Dröge
fa9d6c01dc
Update async-tls to 0.12, env-logger to 0.10 and glib/gio to 0.17
2023-02-10 12:52:50 +02:00
Sebastian Dröge
4e59da8e50
Release 0.19.0
2022-12-11 12:40:14 +02:00