v0.10.0
New Features
DurableFuturesUnordered
Push a dynamic number of durable futures and consume them in completion order. Each result comes back with the index of the future that completed, so you can correlate it with your input.
let mut futures = DurableFuturesUnordered::new();
futures.push(ctx.sleep(Duration::from_secs(1)));
futures.push(ctx.sleep(Duration::from_secs(2)));
futures.push(ctx.sleep(Duration::from_secs(3)));
while let Some((index, result)) = futures.next().await? {
result?;
// ...
}PR #106
Selectable jsonwebtoken crypto backend
You can now pick jsonwebtoken's backend explicitly, either rust_crypto or aws_lc_rs:
restate-sdk = { version = "0.10", default-features = false, features = ["http_server", "aws_lc_rs"] }rust_crypto remains the default. Disabling both lets you call jsonwebtoken::crypto::CryptoProvider::install_default() yourself.
PR #108
Full Changelog: v0.9.0...v0.10.0