trillium-async-std-v0.5.0
·
191 commits
to main
since this release
Changed
- Compatible with trillium 1.0
- Trillium 1.0 uses Swansong instead of Stopper;
config().with_stopper(stopper)becomesconfig().with_swansong(swansong) - Free functions
spawnandblock_onremoved; useAsyncStdRuntime::default().spawn(fut)andAsyncStdRuntime::default().block_on(fut)respectively ClientConfig::spawn(fut)→ClientConfig::runtime().spawn(fut)
Added
AsyncStdRuntimeimplementingRuntimeTrait, with methodsspawn,block_on,delay,interval, andtimeoutAsyncStdUdpSocket— UDP transport type implementingUdpTransport, used bytrillium-quinnfor HTTP/3Config::spawn(handler)now returns aServerHandlethat isCloneand covers the full server lifecycle:awaitit to wait for shutdown, callhandle.info().awaitto wait for the server to finish binding and get aBoundInfo(bound address, URL, shared state), andhandle.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