Skip to content

trillium-async-std-v0.5.0

Choose a tag to compare

@jbr jbr released this 02 May 22:37
· 191 commits to main since this release
ca48261

Changed

  • Compatible with trillium 1.0
  • Trillium 1.0 uses Swansong instead of Stopper; config().with_stopper(stopper) becomes config().with_swansong(swansong)
  • Free functions spawn and block_on removed; use AsyncStdRuntime::default().spawn(fut) and AsyncStdRuntime::default().block_on(fut) respectively
  • ClientConfig::spawn(fut)ClientConfig::runtime().spawn(fut)

Added

  • AsyncStdRuntime implementing RuntimeTrait, with methods spawn, block_on, delay, interval, and timeout
  • AsyncStdUdpSocket — UDP transport type implementing UdpTransport, used by trillium-quinn for HTTP/3
  • Config::spawn(handler) now returns a ServerHandle that is Clone and covers the full server lifecycle: await it to wait for shutdown, call handle.info().await to wait for the server to finish binding and get a BoundInfo (bound address, URL, shared state), and handle.shut_down() to initiate graceful shutdown
  • HTTP/3 support: config().with_quic(trillium_quinn::QuicConfig::from_single_cert(&cert_pem, &key_pem)) — see the trillium changelog for details

Added

  • (async-std) [breaking] use trillium-server-common 0.5

Other

  • release
  • release
  • release
  • (deps) update env_logger requirement from 0.10.1 to 0.11.0