Skip to content

Commit

Permalink
Add Rust shuttle.rs template (#183)
Browse files Browse the repository at this point in the history
* Add Rust shuttle template

Signed-off-by: slinkydeveloper <[email protected]>

* Update to SDK 0.3 both rust templates + add to readme

* Add rust cache to gh actions

---------

Signed-off-by: slinkydeveloper <[email protected]>
  • Loading branch information
slinkydeveloper authored Sep 10, 2024
1 parent 54dc103 commit bb8369f
Show file tree
Hide file tree
Showing 15 changed files with 2,704 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
typescript-deno-hello-world.zip
go-hello-world.zip
rust-hello-world.zip
rust-shuttle-hello-world.zip
kotlin-hello-world-lambda-cdk.zip
go-tour-of-restate.zip
java-tour-of-restate.zip
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
with:
components: clippy
rustflags: ""
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: ./.tools/run_rust_tests.sh

Expand Down
1 change: 1 addition & 0 deletions .tools/prepare_release_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ create_release_zip templates/cloudflare-worker typescript-cloudflare-worker-hell
create_release_zip templates/deno typescript-deno-hello-world
create_release_zip templates/go go-hello-world
create_release_zip templates/rust rust-hello-world
create_release_zip templates/rust-shuttle rust-shuttle-hello-world
create_release_zip templates/typescript-lambda-cdk typescript-hello-world-lambda-cdk
create_release_zip templates/kotlin-gradle-lambda-cdk kotlin-hello-world-lambda-cdk
create_release_zip templates/python python-hello-world
Expand Down
1 change: 1 addition & 0 deletions .tools/run_rust_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ function cargo_build_check() {
}

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

bump_rust_sdk $PROJECT_ROOT/templates/rust
bump_rust_sdk $PROJECT_ROOT/templates/rust-shuttle
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ challenges.

### Rust

| Type | Name / Link |
|-----------|-------------------------------------------------|
| Templates | [Rust Template](templates/rust) |
| Type | Name / Link |
|-----------|------------------------------------------------------|
| Templates | [Rust Template](templates/rust) |
| Templates | [Rust - Shuttle.rs Template](templates/rust-shuttle) |

## Joining the community

Expand Down
11 changes: 11 additions & 0 deletions templates/rust-shuttle/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

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

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

Loading

0 comments on commit bb8369f

Please sign in to comment.