You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: struct-based service definition API
Put #[restate_sdk::service] (or #[object]/#[workflow]) on an impl block,
annotate handlers with #[handler], and do dependency injection via &self
struct fields. Bind the struct value directly (no .serve()) via the new
IntoServiceDefinition trait. Shared/exclusive is inferred from the context
type. Generic structs (bounds + where-clauses) are supported.
The trait-based API keeps working but is deprecated with a compile-time
warning. Examples and test-services migrated to the new API.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: use prelude-reexported macros (drop restate_sdk:: prefix)
The service/object/workflow/handler macros are now re-exported from the
prelude, so first-party examples, tests and test-services use the bare
attribute form.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: rename service attr arg `vis` to `client_visibility`
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Polish
* Polish
* Make sure options get overriden
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments