Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
29 changes: 26 additions & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
run: |
metadata="$(cargo metadata --format-version 1 --no-deps)"
version="$(jq -er '[.packages[] | select(.name == "temporalio-sdk") | .version] | if length == 1 then .[0] else error("expected one temporalio-sdk package") end' <<<"$metadata")"
core_version="$(jq -er '[.packages[] | select(.name == "temporalio-sdk-core") | .version] | if length == 1 then .[0] else error("expected one temporalio-sdk-core package") end' <<<"$metadata")"

if [[ "$GITHUB_REF_NAME" =~ ^releases/([0-9]+)\.([0-9]+)\.x$ ]]; then
release_line="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}"
Expand All @@ -55,6 +56,7 @@ jobs:
{
echo "version=$version"
echo "tag=v$version"
echo "core_tag=core-v$core_version"
} >>"$GITHUB_OUTPUT"

- name: Generate release notes
Expand All @@ -64,7 +66,16 @@ jobs:
--from "$previous_tag" \
--to HEAD \
--changelog rust \
>"$RUNNER_TEMP/release-notes.md"
>"$RUNNER_TEMP/sdk-release-notes.md"

if ! previous_core_tag="$(git describe --tags --match 'core-v[0-9]*' --abbrev=0 HEAD 2>/dev/null)"; then
previous_core_tag="$previous_tag"
fi
cargo run -p changelog-release-notes -- \
--from "$previous_core_tag" \
--to HEAD \
--changelog core \
>"$RUNNER_TEMP/core-release-notes.md"

- name: Plan crate publication
id: publish-plan
Expand All @@ -91,7 +102,7 @@ jobs:
done
cargo publish "${publish_args[@]}"

- name: Create draft GitHub release
- name: Create draft SDK GitHub release
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ steps.release.outputs.tag }}
Expand All @@ -101,4 +112,16 @@ jobs:
--target "$GITHUB_SHA" \
--draft \
--title "$RELEASE_TITLE" \
--notes-file "$RUNNER_TEMP/release-notes.md"
--notes-file "$RUNNER_TEMP/sdk-release-notes.md"

- name: Create draft Core GitHub release
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ steps.release.outputs.core_tag }}
RELEASE_TITLE: temporalio-sdk-core ${{ steps.release.outputs.core_tag }}
run: |
gh release create "$RELEASE_TAG" \
--target "$GITHUB_SHA" \
--draft \
--title "$RELEASE_TITLE" \
--notes-file "$RUNNER_TEMP/core-release-notes.md"
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

## Unreleased

## [1.0.0] - 2026-09-04

Check failure on line 36 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Changelog checkpoint / Changelog checkpoint

CHANGELOG.md additions must be under the Unreleased section.

### Changed
* Published Rust SDK crates now declare their minimum supported Rust version: Rust 1.92 for
`temporalio-sdk`, and Rust 1.88 for the other crates.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
[![crates.io](https://img.shields.io/crates/v/temporalio-sdk.svg)](https://crates.io/crates/temporalio-sdk)
[![docs.rs](https://docs.rs/temporalio-sdk/badge.svg)](https://docs.rs/temporalio-sdk)

Currently in Public Preview, see more in the [SDK README.md](crates/sdk/README.md)
See the [SDK README](crates/sdk/README.md) for usage and examples.

# Temporal Rust Client

[![crates.io](https://img.shields.io/crates/v/temporalio-sdk.svg)](https://crates.io/crates/temporalio-client)
[![docs.rs](https://docs.rs/temporalio-sdk/badge.svg)](https://docs.rs/temporalio-client)

Currently in Public Preview, see more in the [client README.md](crates/client/README.md)
See the [client README](crates/client/README.md) for usage and examples.

# Temporal Core SDK

Expand Down Expand Up @@ -47,7 +47,7 @@ This repo is composed of multiple crates:
- temporalio-sdk-core `./crates/core` - The Core implementation.
- temporalio-sdk-core-c-bridge `./crates/core-c-bridge` - Provides C bindings for Core.
- temporalio-macros `./crates/macros` - Implements procedural macros used by core and the SDK.
- temporalio-sdk `./crates/sdk` - A Public Preview Rust SDK built on top of Core. Used for testing.
- temporalio-sdk `./crates/sdk` - A Rust SDK built on top of Core.

Visualized (dev dependencies are in blue):

Expand Down
9 changes: 8 additions & 1 deletion crates/changelog-release-notes/src/bin/prepare-release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,16 @@ fn parse_args(args: impl IntoIterator<Item = String>) -> Result<(Version, Versio
fn main() -> Result<(), String> {
let (target_sdk, target_core_protos) = parse_args(env::args().skip(1))?;
let root = workspace_root();
let release_date = Utc::now().date_naive();

let changelog_path = root.join("CHANGELOG.md");
let changelog = fs::read_to_string(&changelog_path)
.map_err(|err| format!("failed to read {}: {err}", changelog_path.display()))?;
let changelog = turn_over_changelog(&changelog, &target_sdk, Utc::now().date_naive())?;
let changelog = turn_over_changelog(&changelog, &target_sdk, release_date)?;
let core_changelog_path = root.join("crates/sdk-core/CHANGELOG.md");
let core_changelog = fs::read_to_string(&core_changelog_path)
.map_err(|err| format!("failed to read {}: {err}", core_changelog_path.display()))?;
let core_changelog = turn_over_changelog(&core_changelog, &target_core_protos, release_date)?;

let sdk_update = vec![
"set-version".into(),
Expand Down Expand Up @@ -141,6 +146,8 @@ fn main() -> Result<(), String> {
cargo_set_version(&root, &protos_update)?;
fs::write(&changelog_path, changelog)
.map_err(|err| format!("failed to write {}: {err}", changelog_path.display()))?;
fs::write(&core_changelog_path, core_changelog)
.map_err(|err| format!("failed to write {}: {err}", core_changelog_path.display()))?;

println!("Prepared SDK {target_sdk} with Core and Protos {target_core_protos}");
Ok(())
Expand Down
8 changes: 4 additions & 4 deletions crates/client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "temporalio-client"
version = "0.8.0"
version = "1.0.0"
edition = "2024"
rust-version = "1.88.0"
authors = ["Temporal Technologies Inc. <sdk@temporal.io>"]
Expand Down Expand Up @@ -66,7 +66,7 @@ serde_json = { workspace = true }

[dependencies.temporalio-common]
path = "../common"
version = "~0.8.0"
version = "~1.0.0"
default-features = false
features = ["serde_serialize"]

Expand All @@ -79,8 +79,8 @@ prost = "0.14"
prost-types = { workspace = true }
rstest = "0.26"
tempfile = "3"
temporalio-macros = { path = "../macros", version = "~0.8.0" }
temporalio-workflow = { path = "../workflow", version = "~0.8.0" }
temporalio-macros = { path = "../macros", version = "~1.0.0" }
temporalio-workflow = { path = "../workflow", version = "~1.0.0" }
tokio = { version = "1.47", default-features = false, features = [
"io-util",
"macros",
Expand Down
3 changes: 0 additions & 3 deletions crates/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ This crate provides a Rust client for interacting with the Temporal service. It
standalone to start and manage workflows, or together with the
[`temporalio-sdk`](https://crates.io/crates/temporalio-sdk) crate to run workers.

⚠️ **This crate is in Public Preview and under active development.** The API can and
will continue to evolve.

## Quick Start

### Connecting and Starting Workflows with Environment Configuration
Expand Down
4 changes: 2 additions & 2 deletions crates/common-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "temporalio-common-wasm"
version = "0.8.0"
version = "1.0.0"
edition = "2024"
rust-version = "1.88.0"
authors = ["Temporal Technologies Inc. <sdk@temporal.io>"]
Expand Down Expand Up @@ -46,7 +46,7 @@ tracing-core = "0.1"
url = "2.5"
[dependencies.temporalio-protos]
path = "../protos"
version = "~0.8.0"
version = "~0.9.0"

[lints]
workspace = true
Expand Down
6 changes: 3 additions & 3 deletions crates/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "temporalio-common"
version = "0.8.0"
version = "1.0.0"
edition = "2024"
rust-version = "1.88.0"
authors = ["Temporal Technologies Inc. <sdk@temporal.io>"]
Expand Down Expand Up @@ -107,12 +107,12 @@ uuid = { version = "1.18", default-features = false, features = ["v4"] }

[dependencies.temporalio-protos]
path = "../protos"
version = "~0.8.0"
version = "~0.9.0"
features = ["grpc-clients"]

[dependencies.temporalio-common-wasm]
path = "../common-wasm"
version = "~0.8.0"
version = "~1.0.0"

[build-dependencies]
prost = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "temporalio-macros"
version = "0.8.0"
version = "1.0.0"
edition = "2024"
rust-version = "1.88.0"
authors = ["Temporal Technologies Inc. <sdk@temporal.io>"]
Expand All @@ -21,7 +21,7 @@ quote = "1.0"

[dev-dependencies]
# This is to enable doctests for the macros
temporalio-common = { path = "../common", version = "~0.8.0" }
temporalio-common = { path = "../common", version = "~1.0.0" }
derive_more = { workspace = true }

[package.metadata.workspaces]
Expand Down
2 changes: 1 addition & 1 deletion crates/protos/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "temporalio-protos"
version = "0.8.0"
version = "0.9.0"
edition = "2024"
rust-version = "1.88.0"
authors = ["Temporal Technologies Inc. <sdk@temporal.io>"]
Expand Down
6 changes: 3 additions & 3 deletions crates/sdk-core-c-bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ xz2 = { version = "0.1", optional = true }

[dependencies.temporalio-client]
path = "../client"
version = "~0.8.0"
version = "~1.0.0"
features = ["experimental"]

[dependencies.temporalio-sdk-core]
path = "../sdk-core"
version = "=0.8.0"
version = "=0.9.0"
features = ["ephemeral-server", "otel"]

[dependencies.temporalio-common]
path = "../common"
version = "~0.8.0"
version = "~1.0.0"
features = ["core-based-sdk", "otel"]

[dev-dependencies]
Expand Down
4 changes: 4 additions & 0 deletions crates/sdk-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

## Unreleased

## [0.9.0] - 2026-09-04

Check failure on line 36 in crates/sdk-core/CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Changelog checkpoint / Changelog checkpoint

CHANGELOG.md additions must be under the Unreleased section.

## [0.8.0] - 2026-09-02

### Added
* External workflow signal and cancellation resolution activations now include the typed server
failure cause alongside the existing failure.
Expand Down
12 changes: 6 additions & 6 deletions crates/sdk-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "temporalio-sdk-core"
version = "0.8.0"
version = "0.9.0"
authors = ["Temporal Technologies Inc. <sdk@temporal.io>"]
edition = "2024"
license-file = { workspace = true }
Expand Down Expand Up @@ -131,19 +131,19 @@ zip = { version = "8.4", optional = true, default-features = false, features = [
# 1st party local deps
[dependencies.temporalio-common]
path = "../common"
version = "~0.8.0"
version = "~1.0.0"
default-features = false
features = ["core-telemetry-bridge", "serde_serialize"]

[dependencies.temporalio-client]
path = "../client"
version = "~0.8.0"
version = "~1.0.0"
default-features = false
features = ["core-based-sdk"]

[dependencies.temporalio-macros]
path = "../macros"
version = "~0.8.0"
version = "~1.0.0"

[dev-dependencies]
assert_matches = "1.5"
Expand All @@ -169,8 +169,8 @@ temporalio-sdk = { path = "../sdk", features = [
"testing",
"wasm-workflows",
] }
temporalio-common = { path = "../common", version = "~0.8.0", default-features = false }
temporalio-workflow = { path = "../workflow", version = "~0.8.0", features = [
temporalio-common = { path = "../common", version = "~1.0.0", default-features = false }
temporalio-workflow = { path = "../workflow", version = "~1.0.0", features = [
"experimental",
] }
tokio = { version = "1.47", default-features = false, features = [
Expand Down
12 changes: 6 additions & 6 deletions crates/sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "temporalio-sdk"
version = "0.8.0"
version = "1.0.0"
edition = "2024"
rust-version = "1.92.0"
authors = ["Spencer Judge <spencer@temporal.io>"]
Expand Down Expand Up @@ -47,26 +47,26 @@ url = { version = "2.5", optional = true }

[dependencies.temporalio-sdk-core]
path = "../sdk-core"
version = "=0.8.0"
version = "=0.9.0"
default-features = false

[dependencies.temporalio-workflow]
path = "../workflow"
version = "~0.8.0"
version = "~1.0.0"

[dependencies.temporalio-common]
path = "../common"
version = "~0.8.0"
version = "~1.0.0"
default-features = false

[dependencies.temporalio-client]
path = "../client"
version = "~0.8.0"
version = "~1.0.0"
default-features = false

[dependencies.temporalio-macros]
path = "../macros"
version = "~0.8.0"
version = "~1.0.0"

[dev-dependencies]
futures = "0.3"
Expand Down
7 changes: 2 additions & 5 deletions crates/sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
[![crates.io](https://img.shields.io/crates/v/temporalio-sdk.svg)](https://crates.io/crates/temporalio-sdk)
[![docs.rs](https://docs.rs/temporalio-sdk/badge.svg)](https://docs.rs/temporalio-sdk)

This crate contains a Public Preview Rust SDK. The SDK is built on top of
Core and provides a native Rust experience for writing Temporal workflows and activities.

⚠️ **The SDK is in Public Preview and under active development.** The API can and
will continue to evolve.
This crate contains the Temporal Rust SDK. The SDK is built on top of Core and provides a native
Rust experience for writing Temporal workflows and activities.

## Quick Start

Expand Down
4 changes: 1 addition & 3 deletions crates/sdk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)] // error if there are missing docs

//! This crate defines a Public Preview Temporal Rust SDK.
//! This crate defines the Temporal Rust SDK.
//!
//! The SDK is built on top of Core and provides a native Rust experience for writing Temporal
//! Workflows and Activities.
//!
//! The SDK is in Public Preview and under active development. The API can and will continue to evolve.
//!
//! An example of running an activity worker:
//! ```no_run
//! use std::str::FromStr;
Expand Down
6 changes: 3 additions & 3 deletions crates/workflow/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "temporalio-workflow"
version = "0.8.0"
version = "1.0.0"
edition = "2024"
rust-version = "1.88.0"
authors = ["Temporal Technologies Inc. <sdk@temporal.io>"]
Expand Down Expand Up @@ -44,11 +44,11 @@ rand = { version = "0.10", default-features = false, features = ["thread_rng"] }

[dependencies.temporalio-common-wasm]
path = "../common-wasm"
version = "~0.8.0"
version = "~1.0.0"

[dependencies.temporalio-macros]
path = "../macros"
version = "~0.8.0"
version = "~1.0.0"

[dev-dependencies]
rstest = "0.26"
Expand Down
Loading