Repository navigation
Releases
Releases · programatik29/axum-server
v0.9.2
- added: the
tls-rustls-ringfeature, which uses theringprovider instead ofaws-lc-rs. If both provider features are enabled,aws-lc-rsis used. - removed: the
tls-rustls-acmefeature andacmemodule introduced in 0.9.1. 0.9.1 is yanked.
v0.9.1
This release is yanked on crates.io. The tls-rustls-acme feature and acme module were removed in 0.9.2.
- added:
ConnectionShutdownis added to the extensions of every request and closes the connection that dispatched it, either immediately or after the in-flight response. - added:
Control, an address-agnostic handle that shares shutdown and connection counting across servers listening on different address types. Build a per-listenerHandlewithHandle::with_control. - added: an
async_sniexample that implementsAcceptwithLazyConfigAcceptorto resolve TLS certificates asynchronously from the ClientHello. - added: the optional
tls-rustls-acmefeature andacmemodule, which acquire and renew certificates automatically throughrustls-acme(TLS-ALPN-01, for example Let's Encrypt), plus anacmeexample.
v0.9.0
- added:
Server::first_request_timeout, which closes connections that do not send a request in time. This also covers the protocol detection read that hyper does before any HTTP timeout applies. - added:
Server::accept_error_handler, which reports connection accept errors instead of silently dropping them. - added: TLS acceptors now add
axum_server::tls::TlsInfo(SNI, ALPN, and client certificates) to request extensions asArc<TlsInfo>for both rustls and OpenSSL. - added:
axum_server::accept::LocalAddrAcceptoradds the local socket address of the connection to request extensions asLocalAddr. - added:
RustlsConfig::from_sni_pem_files, which selects the certificate using the server name sent by the client through SNI. - added: the
tls-rustls-encrypted-keysfeature andRustlsConfig::from_pem_with_passwordplus file and reload variants, for encrypted PKCS#8 private keys. - added:
accept::TcpConfigAcceptor,accept::TcpSocketConfig, andaccept::TcpKeepaliveConfigapplyTCP_NODELAYand TCP keepalive settings to accepted connections. - added: a
timeoutsexample showing the request, header, keep-alive, and TLS handshake timeouts. - added: a
reverse_proxyexample that terminates TLS and forwards requests to an HTTP upstream. - breaking: TLS acceptors now return a
tls::TlsServicewrapper service. Custom acceptors that wrap a TLS acceptor and assume the service type is unchanged need to be updated;examples/rustls_session.rsnow uses the built-inTlsInfo. - fixed:
Handle::listening()now returnsNoneafter a bind failure instead of waiting forever, and no longer races with server startup. - fixed:
RustlsConfig::from_pem_chain_filenow sets theh2andhttp/1.1ALPN protocols like the otherRustlsConfigconstructors. - fixed: Connections that are still performing the TLS handshake are now cancelled on shutdown instead of keeping a task and file descriptor alive until the handshake timeout.
- fixed: A timer is now installed by default, so
header_read_timeoutandkeep_alive_timeoutno longer panic with "timeout set, but no timer set". - fixed:
from_tcpandfrom_unixnow put the provided listener into non-blocking mode, as required by Tokio. Thefrom_std_listenerexamples work without extra setup. - fixed:
Server::acceptorandServer::mapnow preserve the HTTP version selected byhttp1_only/http2_only. - changed: The
tls-rustlsfeature now enables TLS 1.2, restoring the behavior from before 0.7.0. - changed:
fs-erris now an optional dependency and is only pulled in by the rustls features.
v0.8.0
- changed:
Serveris now generic over connections, allowingaxum-serverto listen not just on TCP. - added: Support for Unix sockets has been implemented and an example for Unix sockets has been provided.
- changed:
rustls-pemfilewas replaced withrustls-pki-typesas it is now unmaintained.
v0.7.4
v0.7.3
- fixed:
axum-servernot compiling in hyper1.8.0.
v0.7.2
- changed: Use fs-err to augment errors loading pem files.
- changed: Updated
towerfrom0.4to0.5. - added: Support reading PKCS#1 and SEC1 private keys with Rustls.
v0.7.1
v0.7.0
- fixed: Graceful shutdown now stops accepting requests from existing connections.
- changed: Updated
rustlsfrom0.21to0.23. - changed: Updated
tokio-rustlsfrom0.24to0.26. - changed: Updated
hyperfrom1.0.1to1.4. - changed: Updated
httpfrom1.0.0to1.1. - added:
rustls-pki-typesdependency for thetls-rustlsfeature. - changed: Replaced usage of
rustls::Certificateandrustls::PrivateKeywithrustls_pki_types::CertificateDerandrustls_pki_types::PrivateKeyDer. - changed: Updated
ServerConfiginitialization to removewith_safe_defaults()call. - changed: Updated
ClientConfiginitialization in tests to usedangerous()instead ofwith_safe_defaults(). - changed: Updated
ServerCertVerifierimplementation in tests to match new rustls API. - changed: Minor version bumps for various dependencies including
rustls-pemfile,serial_test, andtower-http.
v0.6.0
- added: functionalities in
tls_openssl, that were added as they appeared to be only intls_rustls:axum_server::tls_openssl::OpenSSLConfig::from_acceptoraxum_server::tls_openssl::OpenSSLConfig::from_deraxum_server::tls_openssl::OpenSSLConfig::from_pemaxum_server::tls_openssl::OpenSSLConfig::get_inneraxum_server::tls_openssl::OpenSSLConfig::reload_from_deraxum_server::tls_openssl::OpenSSLConfig::reload_from_pemaxum_server::tls_openssl::OpenSSLConfig::reload_from_pem_fileaxum_server::tls_openssl::OpenSSLConfig::reload_from_pem_chain_file
- added:
from_pem_chain_filemethod forRustlsConfig. - breaking: Removed
HttpConfigandAddrIncomingConfig. - breaking: Updated
axumfrom0.6to0.7. - breaking: Updated
hyperto1.0.1.