Skip to content

Commit

Permalink
Link straight to rust SDK docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdongen committed Nov 27, 2024
1 parent ef62703 commit dc7b371
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 26 deletions.
2 changes: 1 addition & 1 deletion docs/develop/go/journaling-results.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Here is an example of a database request for which the string response is stored
CODE_LOAD::go/develop/journalingresults.go#side_effect
```

You cannot use the Restate context within a side effect.
You cannot use the Restate context within `Run`.
This includes actions such as getting state, calling another service, and
nesting other journaled actions. You should only use methods available on the
[`RunContext`](https://pkg.go.dev/github.com/restatedev/sdk-go#RunContext)
Expand Down
2 changes: 1 addition & 1 deletion docs/develop/java/journaling-results.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Have a look at the [serialization docs](/develop/java/serialization), for other
</TabItem>
</Tabs>

You cannot invoke any methods on the Restate context within a `ctx.run` function.
You cannot use the Restate context within a `ctx.run` function.
This includes actions such as getting state, calling another service, and nesting other journaled actions.

<Admonition type="note" title="Failure semantics">
Expand Down
2 changes: 1 addition & 1 deletion docs/develop/python/journaling-results.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Here is an example of a database request for which the string response is stored
CODE_LOAD::python/src/develop/journaling_results.py#side_effect
```

You cannot invoke any methods on the Restate context within a side effect.
You cannot use the Restate context within `ctx.run`.
This includes actions such as getting state, calling another service, and nesting other journaled actions.

You can return any payload that can be serialized with `bytes(json.dumps(obj), "utf-8")` and deserialized with `json.loads(buf)`.
Expand Down
7 changes: 0 additions & 7 deletions docs/develop/rust/_category_.json

This file was deleted.

14 changes: 0 additions & 14 deletions docs/develop/rust/overview.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion docs/develop/ts/journaling-results.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Here is an example of a database request for which the string response is stored
CODE_LOAD::ts/src/develop/journaling_results.ts#side_effect
```

You cannot invoke any methods on the Restate context within a side effect.
You cannot use the Restate context within `ctx.run`.
This includes actions such as getting state, calling another service, and nesting other journaled actions.

You can store any result value that can be serialized as a Buffer with `Buffer.from(JSON.stringify(yourObject))` and deserialized with `JSON.parse(result.toString()) as T`.
Expand Down
9 changes: 8 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ const sidebars = {
{type: 'html', value: '<hr class="margin-vert--sm">'},
{type: 'category', label: 'CONCEPTS',collapsed: false, items: [{type: 'autogenerated', dirName: 'concepts'}]},
{type: 'html', value: '<hr class="margin-vert--sm">'},
{type: 'category', label: 'DEVELOP', collapsed: false, items: [{type: 'autogenerated', dirName: 'develop'}]},
{type: 'category', label: 'DEVELOP', collapsed: false, items: [
{type: 'autogenerated', dirName: 'develop'},
{
type: 'link',
label: 'Rust SDK',
href: 'https://docs.rs/restate-sdk/latest/restate_sdk/',
},
]},
{type: 'category', label: 'INVOKE', collapsed: true, items: [{type: 'autogenerated', dirName: 'invoke'}]},
{type: 'category', label: 'DEPLOY', collapsed: true, items: [{type: 'autogenerated', dirName: 'deploy'}]},
{type: 'category', label: 'OPERATE', collapsed: true, items: [{type: 'autogenerated', dirName: 'operate'}]},
Expand Down

0 comments on commit dc7b371

Please sign in to comment.