Releases: restatedev/sdk-rust
Releases · restatedev/sdk-rust
v0.3.2
What's Changed
- Add MSRV computed with
cargo msrv
by @slinkydeveloper in #26 - Example with periodic task by @slinkydeveloper in #28
- Make endpoint handle function independent of other handlers by @h7kanna in #29
- No need for the run future to be
Sync
by @slinkydeveloper in #32 - Documentation for Rust SDK by @gvdongen in #34
- Fix docs landing page by @gvdongen in #36
New Contributors
Full Changelog: v0.3.0...v0.3.2
v0.3.0
Breaking changes
- The
ctx.run
API now does not requirename
as first parameter anymore - Renamed
Endpoint.with_service
toEndpoint.bind
- This SDK is compatible only with Restate >= 1.1
New features
- It is now possible to configure a retry policy for
ctx.run
- Now std
Result
can be returned from handlers, and similarly any error type can be used. Behind the hood, the error type will always be converted toHandlerError
, following the rules described here: https://docs.rs/restate-sdk/latest/restate_sdk/errors/struct.HandlerError.html
What's Changed
- Rust docs by @slinkydeveloper in #17
- Fix bad indendation in docs by @slinkydeveloper in #18
- Add x_restate_server header by @slinkydeveloper in #21
- Side effect retry by @slinkydeveloper in #20
- Now a standalone Result can be returned from handlers by @slinkydeveloper in #22
- Naming improvements by @slinkydeveloper in #23
- Docs improvements by @slinkydeveloper in #24
- Add rust toolchain file by @slinkydeveloper in #25
Full Changelog: v0.2.0...v0.3.0
v0.2.0
New features
- Generated clients from the respective service/object/workflow macros. To use them, just use
context.service_client::<MyTraitClient>()
et al. - You can now use the hyper integration alone, without using our
HttpServer
that depends ontokio
, by enabling the featurehyper
and disabling the featurehttp_server
- Now the context methods are defined in traits
- Add
ctx.rand()
andctx.rand_uuid()
for deterministic random number/uuid generation - Add
ctx.headers()
andctx.headers_mut()
to access the ingress headers - Add identity verification
Breaking changes
- Renamed
HyperServer
toHttpServer
- Removed context
send
,send_delay
andcall
, replaced withctx.request(..).send()
andctx.request(..).call()
(in future thisRequest
struct will allow to configure some parameters of the request, such as headers)
Full Changelog: v0.1.0...v0.2.0