NOTE: This is not the official Rust SDK for Temporal, but based on a fork by Harsha Teja Kanna.
NOTE: This is a work in progress and experimental. The API is not stable and is subject to change.
- Rust https://www.rust-lang.org/tools/install
- Cargo https://doc.rust-lang.org/cargo/getting-started/installation.html
- Temporal Server https://docs.temporal.io/application-development/foundations#run-a-development-server
cargo build
docker build --build-arg="RUST_TARGET_ARCH=aarch64-unknown-linux-gnu" -t h7kanna/temporal-rust-worker .
temporal server start-dev
cargo run # connects to port 7233 from temporal-frontend
In a separate terminal:
temporal workflow start --task-queue="example-task-queue" --type="sdk_example_workflow" --workflow-id="example_id" --input='{"code":"rust","kind":"typesafe"}'
Check the execution in the Temporal Web UI: http://localhost:8233/namespaces/default/workflows
Check out https://www.ekalavya.dev/ for more upcoming blogs on Temporal Rust SDK.