diff --git a/.github/workflows/heavy.yml b/.github/workflows/heavy.yml index af74efedb..349bfa8c3 100644 --- a/.github/workflows/heavy.yml +++ b/.github/workflows/heavy.yml @@ -4,7 +4,7 @@ on: # rebuild any PRs and main branch changes pull_request: push: branches: - - master + - main permissions: contents: read diff --git a/.github/workflows/per-pr.yml b/.github/workflows/per-pr.yml index c8ad3e836..c3a48fff9 100644 --- a/.github/workflows/per-pr.yml +++ b/.github/workflows/per-pr.yml @@ -4,7 +4,7 @@ on: # rebuild any PRs and main branch changes pull_request: push: branches: - - master + - main permissions: contents: read @@ -17,7 +17,7 @@ concurrency: jobs: build-and-lint: name: "Format, docs, and lint" - timeout-minutes: ${{ github.ref == 'refs/heads/master' && 15 || 10 }} + timeout-minutes: ${{ github.ref == 'refs/heads/main' && 15 || 10 }} runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 @@ -33,7 +33,7 @@ jobs: - run: rustup component add rustfmt clippy - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 with: - save-if: ${{ github.ref == 'refs/heads/master' }} + save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo fmt --all --check - run: cargo doc --workspace --all-features --no-deps env: @@ -46,7 +46,7 @@ jobs: test: name: Unit Tests # Give extra time to ensure pushes to main have time to populate the cache - timeout-minutes: ${{ matrix.timeoutMinutes || (github.ref == 'refs/heads/master' && 20 || 15) }} + timeout-minutes: ${{ matrix.timeoutMinutes || (github.ref == 'refs/heads/main' && 20 || 15) }} strategy: fail-fast: false matrix: @@ -82,7 +82,7 @@ jobs: core.exportVariable('RUSTFLAGS', '-Csymbol-mangling-version=v0'); - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 with: - save-if: ${{ github.ref == 'refs/heads/master' }} + save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo test -- --include-ignored --nocapture - name: Find test executable for cgroup tests id: find-cgroup-test @@ -107,7 +107,7 @@ jobs: msrv: name: "Verify MSRV" - timeout-minutes: ${{ github.ref == 'refs/heads/master' && 15 || 10 }} + timeout-minutes: ${{ github.ref == 'refs/heads/main' && 15 || 10 }} runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 @@ -123,7 +123,7 @@ jobs: - run: rustup component add rustfmt clippy - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 with: - save-if: ${{ github.ref == 'refs/heads/master' }} + save-if: ${{ github.ref == 'refs/heads/main' }} key: msrv - run: cargo install cargo-msrv - run: cargo msrv verify @@ -150,7 +150,7 @@ jobs: integ-tests: name: Integ tests - timeout-minutes: ${{ github.ref == 'refs/heads/master' && 30 || 25 }} + timeout-minutes: ${{ github.ref == 'refs/heads/main' && 30 || 25 }} strategy: fail-fast: false matrix: @@ -185,18 +185,18 @@ jobs: core.exportVariable('RUSTFLAGS', '-Csymbol-mangling-version=v0'); - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 with: - save-if: ${{ github.ref == 'refs/heads/master' }} + save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo integ-test cloud-tests: - if: github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-core' + if: github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-rust' name: Cloud tests env: TEMPORAL_CLOUD_ADDRESS: https://${{ vars.TEMPORAL_CLIENT_NAMESPACE }}.tmprl.cloud:7233 TEMPORAL_NAMESPACE: ${{ vars.TEMPORAL_CLIENT_NAMESPACE }} TEMPORAL_CLIENT_CERT: ${{ secrets.TEMPORAL_CLIENT_CERT }} TEMPORAL_CLIENT_KEY: ${{ secrets.TEMPORAL_CLIENT_KEY }} - timeout-minutes: ${{ github.ref == 'refs/heads/master' && 25 || 20 }} + timeout-minutes: ${{ github.ref == 'refs/heads/main' && 25 || 20 }} runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 @@ -210,7 +210,7 @@ jobs: - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 with: - save-if: ${{ github.ref == 'refs/heads/master' }} + save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo test --features=test-utilities --test cloud_tests docker-integ-tests: @@ -221,7 +221,7 @@ jobs: TEMPORAL_CLIENT_CERT: ${{ secrets.TEMPORAL_CLIENT_CERT }} TEMPORAL_CLIENT_KEY: ${{ secrets.TEMPORAL_CLIENT_KEY }} DOCKER_PROMETHEUS_RUNNING: true - timeout-minutes: ${{ github.ref == 'refs/heads/master' && 25 || 20 }} + timeout-minutes: ${{ github.ref == 'refs/heads/main' && 25 || 20 }} runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 @@ -238,7 +238,7 @@ jobs: compose-file: ./etc/docker/docker-compose-ci.yaml - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 with: - save-if: ${{ github.ref == 'refs/heads/master' }} + save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo integ-test docker_ examples: @@ -255,7 +255,7 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 with: - save-if: ${{ github.ref == 'refs/heads/master' }} + save-if: ${{ github.ref == 'refs/heads/main' }} - name: Build examples run: cargo build --examples -p temporalio-sdk --features examples - name: Install Temporal CLI diff --git a/AGENTS.md b/AGENTS.md index 6bc8a2233..6d24057e6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,4 +1,4 @@ -# Contributor Guidance for `sdk-core` +# Contributor Guidance for `sdk-rust` This repository provides a Rust workspace for the Temporal Core SDK and related crates. Use this document as your quick reference when submitting pull requests. diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index eaa2d64f4..e199689ae 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -112,7 +112,7 @@ definitions. The actual implementations of this "service" are not generated by g the messages themselves are, and make it easier to hit the ground running in new languages. See the latest API -definition [here](https://github.com/temporalio/sdk-core/tree/master/sdk-core-protos/protos/local/temporal/sdk/core) +definition [here](https://github.com/temporalio/sdk-rust/tree/main/crates/common/protos/local/temporal/sdk/core) ## Other topics diff --git a/crates/client/Cargo.toml b/crates/client/Cargo.toml index 10c206e5a..50cb6e3ae 100644 --- a/crates/client/Cargo.toml +++ b/crates/client/Cargo.toml @@ -6,7 +6,7 @@ authors = ["Temporal Technologies Inc. "] license-file = { workspace = true } description = "Clients for interacting with Temporal" homepage = "https://temporal.io/" -repository = "https://github.com/temporalio/sdk-core" +repository = "https://github.com/temporalio/sdk-rust" keywords = ["temporal", "workflow"] categories = ["development-tools"] readme = "README.md" diff --git a/crates/common/Cargo.toml b/crates/common/Cargo.toml index 41bc58eaf..c1e25b23d 100644 --- a/crates/common/Cargo.toml +++ b/crates/common/Cargo.toml @@ -6,7 +6,7 @@ authors = ["Temporal Technologies Inc. "] license-file = { workspace = true } description = "Common functionality for the Temporal SDK Core, Client, and Rust SDK" homepage = "https://temporal.io/" -repository = "https://github.com/temporalio/sdk-core" +repository = "https://github.com/temporalio/sdk-rust" keywords = ["temporal", "workflow"] categories = ["development-tools"] exclude = ["protos/*/.github/*"] diff --git a/crates/macros/Cargo.toml b/crates/macros/Cargo.toml index b4a7a402d..9170a38b7 100644 --- a/crates/macros/Cargo.toml +++ b/crates/macros/Cargo.toml @@ -6,7 +6,7 @@ authors = ["Temporal Technologies Inc. "] license-file = { workspace = true } description = "Procmacros used in Temporal Core & Rust SDKs" homepage = "https://temporal.io/" -repository = "https://github.com/temporalio/sdk-core" +repository = "https://github.com/temporalio/sdk-rust" keywords = ["temporal", "workflow", "macros"] categories = ["development-tools"] diff --git a/crates/sdk-core-c-bridge/Cargo.toml b/crates/sdk-core-c-bridge/Cargo.toml index b8778d70e..0950eef8d 100644 --- a/crates/sdk-core-c-bridge/Cargo.toml +++ b/crates/sdk-core-c-bridge/Cargo.toml @@ -6,7 +6,7 @@ authors = ["Spencer Judge "] license-file = { workspace = true } description = "C bridge for Temporal Core SDK" homepage = "https://temporal.io/" -repository = "https://github.com/temporalio/sdk-core" +repository = "https://github.com/temporalio/sdk-rust" keywords = ["temporal", "workflow"] categories = ["development-tools"] publish = false diff --git a/crates/sdk-core/Cargo.toml b/crates/sdk-core/Cargo.toml index ab7ded095..da5a1c418 100644 --- a/crates/sdk-core/Cargo.toml +++ b/crates/sdk-core/Cargo.toml @@ -6,7 +6,7 @@ edition = "2024" license-file = { workspace = true } description = "Library for building new Temporal SDKs" homepage = "https://temporal.io/" -repository = "https://github.com/temporalio/sdk-core" +repository = "https://github.com/temporalio/sdk-rust" keywords = ["temporal", "workflow"] categories = ["development-tools"] exclude = ["machine_coverage/*"] diff --git a/crates/sdk/Cargo.toml b/crates/sdk/Cargo.toml index ca66bfd7f..e511b597c 100644 --- a/crates/sdk/Cargo.toml +++ b/crates/sdk/Cargo.toml @@ -6,7 +6,7 @@ authors = ["Spencer Judge "] license-file = { workspace = true } description = "Temporal Rust SDK" homepage = "https://temporal.io/" -repository = "https://github.com/temporalio/sdk-core" +repository = "https://github.com/temporalio/sdk-rust" keywords = ["temporal", "workflow"] categories = ["development-tools"] readme = "README.md"