Skip to content

Releases

v0.9.2

Choose a tag to compare

@adislm adislm released this 11 Nov 08:41
ad890d8
  • added: the tls-rustls-ring feature, which uses the ring provider instead of aws-lc-rs. If both provider features are enabled, aws-lc-rs is used.
  • removed: the tls-rustls-acme feature and acme module introduced in 0.9.1. 0.9.1 is yanked.

v0.9.1

Choose a tag to compare

@adislm adislm released this 10 Nov 12:29
f37187e

This release is yanked on crates.io. The tls-rustls-acme feature and acme module were removed in 0.9.2.

  • added: ConnectionShutdown is 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-listener Handle with Handle::with_control.
  • added: an async_sni example that implements Accept with LazyConfigAcceptor to resolve TLS certificates asynchronously from the ClientHello.
  • added: the optional tls-rustls-acme feature and acme module, which acquire and renew certificates automatically through rustls-acme (TLS-ALPN-01, for example Let's Encrypt), plus an acme example.

v0.9.0

Choose a tag to compare

@adislm adislm released this 06 Nov 17:25
d456d10
  • 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 as Arc<TlsInfo> for both rustls and OpenSSL.
  • added: axum_server::accept::LocalAddrAcceptor adds the local socket address of the connection to request extensions as LocalAddr.
  • 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-keys feature and RustlsConfig::from_pem_with_password plus file and reload variants, for encrypted PKCS#8 private keys.
  • added: accept::TcpConfigAcceptor, accept::TcpSocketConfig, and accept::TcpKeepaliveConfig apply TCP_NODELAY and TCP keepalive settings to accepted connections.
  • added: a timeouts example showing the request, header, keep-alive, and TLS handshake timeouts.
  • added: a reverse_proxy example that terminates TLS and forwards requests to an HTTP upstream.
  • breaking: TLS acceptors now return a tls::TlsService wrapper service. Custom acceptors that wrap a TLS acceptor and assume the service type is unchanged need to be updated; examples/rustls_session.rs now uses the built-in TlsInfo.
  • fixed: Handle::listening() now returns None after a bind failure instead of waiting forever, and no longer races with server startup.
  • fixed: RustlsConfig::from_pem_chain_file now sets the h2 and http/1.1 ALPN protocols like the other RustlsConfig constructors.
  • 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_timeout and keep_alive_timeout no longer panic with "timeout set, but no timer set".
  • fixed: from_tcp and from_unix now put the provided listener into non-blocking mode, as required by Tokio. The from_std_listener examples work without extra setup.
  • fixed: Server::acceptor and Server::map now preserve the HTTP version selected by http1_only/http2_only.
  • changed: The tls-rustls feature now enables TLS 1.2, restoring the behavior from before 0.7.0.
  • changed: fs-err is now an optional dependency and is only pulled in by the rustls features.

v0.8.0

Choose a tag to compare

@adislm adislm released this 06 Dec 21:17
  • changed: Server is now generic over connections, allowing axum-server to listen not just on TCP.
  • added: Support for Unix sockets has been implemented and an example for Unix sockets has been provided.
  • changed: rustls-pemfile was replaced with rustls-pki-types as it is now unmaintained.

v0.7.4

Choose a tag to compare

@adislm adislm released this 06 Dec 21:16
  • added: Support for http1-only and http2-only servers.
  • changed: Improved error messages that come from parsing pemfiles with rustls.

v0.7.3

Choose a tag to compare

@programatik29 programatik29 released this 14 Nov 21:08
0ce7940
  • fixed: axum-server not compiling in hyper 1.8.0.

v0.7.2

Choose a tag to compare

@programatik29 programatik29 released this 14 Mar 13:02
f60b615
  • changed: Use fs-err to augment errors loading pem files.
  • changed: Updated tower from 0.4 to 0.5.
  • added: Support reading PKCS#1 and SEC1 private keys with Rustls.

v0.7.1

Choose a tag to compare

@daxpedda daxpedda released this 31 Jul 13:41
7ad0874
  • added: Crate feature tls-rustls-no-provider, which enables no rustls::crypto::CryptoProvider.
  • fixed: Correct minimum required hyper-util to 0.1.2.

v0.7.0

Choose a tag to compare

@programatik29 programatik29 released this 30 Jul 16:36
0830eaa
  • fixed: Graceful shutdown now stops accepting requests from existing connections.
  • changed: Updated rustls from 0.21 to 0.23.
  • changed: Updated tokio-rustls from 0.24 to 0.26.
  • changed: Updated hyper from 1.0.1 to 1.4.
  • changed: Updated http from 1.0.0 to 1.1.
  • added: rustls-pki-types dependency for the tls-rustls feature.
  • changed: Replaced usage of rustls::Certificate and rustls::PrivateKey with rustls_pki_types::CertificateDer and rustls_pki_types::PrivateKeyDer.
  • changed: Updated ServerConfig initialization to remove with_safe_defaults() call.
  • changed: Updated ClientConfig initialization in tests to use dangerous() instead of with_safe_defaults().
  • changed: Updated ServerCertVerifier implementation in tests to match new rustls API.
  • changed: Minor version bumps for various dependencies including rustls-pemfile, serial_test, and tower-http.

v0.6.0

Choose a tag to compare

@adislm adislm released this 22 Dec 19:34
  • added: functionalities in tls_openssl, that were added as they appeared to be only in tls_rustls:
    • axum_server::tls_openssl::OpenSSLConfig::from_acceptor
    • axum_server::tls_openssl::OpenSSLConfig::from_der
    • axum_server::tls_openssl::OpenSSLConfig::from_pem
    • axum_server::tls_openssl::OpenSSLConfig::get_inner
    • axum_server::tls_openssl::OpenSSLConfig::reload_from_der
    • axum_server::tls_openssl::OpenSSLConfig::reload_from_pem
    • axum_server::tls_openssl::OpenSSLConfig::reload_from_pem_file
    • axum_server::tls_openssl::OpenSSLConfig::reload_from_pem_chain_file
  • added: from_pem_chain_file method for RustlsConfig.
  • breaking: Removed HttpConfig and AddrIncomingConfig.
  • breaking: Updated axum from 0.6 to 0.7.
  • breaking: Updated hyper to 1.0.1.