Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Rust tour #220

Merged
merged 8 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
**/package-lock.json
**/target
**/restate-data
*.iml
1 change: 1 addition & 0 deletions .tools/prepare_release_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ create_release_zip tutorials/tour-of-restate-go go-tour-of-restate
create_release_zip tutorials/tour-of-restate-java java-tour-of-restate
create_release_zip tutorials/tour-of-restate-typescript typescript-tour-of-restate
create_release_zip tutorials/tour-of-restate-python python-tour-of-restate
create_release_zip tutorials/tour-of-restate-rust rust-tour-of-restate

create_release_zip patterns-use-cases/payment-state-machine/payment-state-machine-typescript typescript-payment-state-machine

Expand Down
3 changes: 2 additions & 1 deletion .tools/run_rust_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ function cargo_build_check() {
}

cargo_build_check $PROJECT_ROOT/templates/rust
cargo_build_check $PROJECT_ROOT/templates/rust-shuttle
cargo_build_check $PROJECT_ROOT/templates/rust-shuttle
cargo_build_check $PROJECT_ROOT/tutorials/tour-of-restate-rust
1 change: 1 addition & 0 deletions .tools/update_rust_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ function bump_rust_sdk() {

bump_rust_sdk $PROJECT_ROOT/templates/rust
bump_rust_sdk $PROJECT_ROOT/templates/rust-shuttle
bump_rust_sdk $PROJECT_ROOT/tutorials/tour-or-restate-rust
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ challenges.
|-----------|------------------------------------------------------|
| Templates | [Rust Template](templates/rust) |
| Templates | [Rust - Shuttle.rs Template](templates/rust-shuttle) |
| Tutorial | [Tour of Restate](tutorials/tour-of-restate-rust) |

## Joining the community

Expand Down
1 change: 1 addition & 0 deletions templates/python/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async def greet(ctx: Context, req: GreetingRequest) -> Greeting:
await ctx.sleep(timedelta(seconds=1))
await ctx.run("send reminder", lambda: send_reminder(greeting_id))

ctx.ge
gvdongen marked this conversation as resolved.
Show resolved Hide resolved
# Respond to caller
return Greeting(message=f"You said hi to {req.name}!")

Expand Down
13 changes: 13 additions & 0 deletions tutorials/tour-of-restate-rust/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/
.idea/
*.iml

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

Loading