Skip to content

Commit 64bb779

Browse files
committed
feat(engine): rust runner
1 parent 3720030 commit 64bb779

97 files changed

Lines changed: 8907 additions & 3046 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pkg-pr-new.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
find /tmp/inspector-repack -name '*.map' -delete
2525
tar czf inspector.tar.gz -C /tmp/inspector-repack .
2626
rm -rf /tmp/inspector-repack
27-
- run: pnpm dlx pkg-pr-new publish 'shared/typescript/*' 'engine/sdks/typescript/runner/' 'engine/sdks/typescript/runner-protocol/' 'engine/sdks/typescript/envoy-client/' 'engine/sdks/typescript/envoy-protocol/' 'rivetkit-typescript/packages/*' --packageManager pnpm --template './examples/*'
27+
- run: pnpm dlx pkg-pr-new publish 'shared/typescript/*' 'engine/sdks/typescript/envoy-client/' 'engine/sdks/typescript/envoy-protocol/' 'rivetkit-typescript/packages/*' --packageManager pnpm --template './examples/*'

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The `rivet.gg` domain is deprecated and should never be used in this codebase.
2020
**Never modify an existing published `*.bare` runner protocol version unless explicitly asked to do so.**
2121

2222
- Add a new versioned schema instead, then migrate `versioned.rs` and related compatibility code to bridge old versions forward.
23-
- When bumping the protocol version, update `PROTOCOL_MK2_VERSION` in `engine/sdks/rust/runner-protocol/src/lib.rs` and `PROTOCOL_VERSION` in `engine/sdks/typescript/runner/src/mod.ts` together. Both must match the latest schema version.
23+
- When bumping the protocol version, update `PROTOCOL_MK2_VERSION` in `engine/packages/runner-protocol/src/lib.rs` and `PROTOCOL_VERSION` in `rivetkit-typescript/packages/engine-runner/src/mod.ts` together. Both must match the latest schema version.
2424

2525
**Keep the KV API in sync between the runner protocol and the KV channel protocol.**
2626

Cargo.lock

Lines changed: 111 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ members = [
5151
"engine/packages/workflow-worker",
5252
"engine/sdks/rust/api-full",
5353
"engine/sdks/rust/data",
54-
"engine/sdks/rust/engine-runner",
55-
"engine/sdks/rust/envoy-client",
5654
"engine/sdks/rust/envoy-protocol",
5755
"engine/sdks/rust/epoxy-protocol",
5856
"engine/sdks/rust/kv-channel-protocol",
59-
"engine/sdks/rust/runner-protocol",
57+
"engine/packages/runner-protocol",
58+
"engine/sdks/rust/test-envoy",
59+
"engine/sdks/typescript/test-envoy-native",
6060
"engine/sdks/rust/ups-protocol"
6161
]
6262

@@ -509,17 +509,14 @@ members = [
509509
[workspace.dependencies.rivet-kv-channel-protocol]
510510
path = "engine/sdks/rust/kv-channel-protocol"
511511

512-
[workspace.dependencies.rivet-engine-runner]
513-
path = "engine/sdks/rust/engine-runner"
514-
515-
[workspace.dependencies.rivet-envoy-client]
516-
path = "engine/sdks/rust/envoy-client"
517-
518512
[workspace.dependencies.rivet-envoy-protocol]
519513
path = "engine/sdks/rust/envoy-protocol"
520514

521515
[workspace.dependencies.rivet-runner-protocol]
522-
path = "engine/sdks/rust/runner-protocol"
516+
path = "engine/packages/runner-protocol"
517+
518+
[workspace.dependencies.rivet-test-envoy]
519+
path = "engine/sdks/rust/test-envoy"
523520

524521
[workspace.dependencies.rivet-ups-protocol]
525522
path = "engine/sdks/rust/ups-protocol"

engine/CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ When changing a versioned VBARE schema, follow the existing migration pattern.
2323
3. Verify the affected Rust crate still builds.
2424
4. For the runner protocol specifically:
2525
- Bump both protocol constants together:
26-
- `engine/sdks/rust/runner-protocol/src/lib.rs` `PROTOCOL_MK2_VERSION`
27-
- `engine/sdks/typescript/runner/src/mod.ts` `PROTOCOL_VERSION`
28-
- Update the Rust latest re-export in `engine/sdks/rust/runner-protocol/src/lib.rs` to the new generated module.
26+
- `engine/packages/runner-protocol/src/lib.rs` `PROTOCOL_MK2_VERSION`
27+
- `rivetkit-typescript/packages/engine-runner/src/mod.ts` `PROTOCOL_VERSION`
28+
- Update the Rust latest re-export in `engine/packages/runner-protocol/src/lib.rs` to the new generated module.
2929

3030
## Epoxy durable keys
3131

engine/docker/dev-host/docker-compose.yml

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

engine/docker/dev-host/rivet-engine/config.jsonc

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

engine/docker/dev-multidc-multinode/datacenters/dc-a/rivet-engine/0/config.jsonc

Lines changed: 5 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

engine/docker/dev-multidc-multinode/datacenters/dc-a/rivet-engine/1/config.jsonc

Lines changed: 5 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)