Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

[Graphite MQ] Draft PR GROUP:319359 (PRs 575, 576, 577, 578, 579, 580, 581, 582) #583

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -11,6 +11,3 @@ sdks/** linguist-generated=true
**/Cargo.lock linguist-generated=true
*.png binary

# This Rustacean is in denial there's more TypeScript than Rust in this repo
packages/backend/** linguist-vendored

8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -56,8 +56,8 @@ Temporary Items

# End of https://www.toptal.com/developers/gitignore/api/deno,macos

# Backend
packages/backend/artifacts/
packages/backend/vendor/
packages/backend/node_modules/
# JS Utils
packages/js-utils/artifacts/
packages/js-utils/vendor/
packages/js-utils/node_modules/

40 changes: 40 additions & 0 deletions ACTOR_CRASH_COURSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Actor Crash Course

## Prerequisites

- Must have Rivet docker compose running
- Must have hub running just for the device link

## Actor test

```bash
cargo build
cd examples/js-deno
../../target/debug/rivet login --api-endpoint http://localhost:8080
# copy the path to localhost:5080/device/link/... and finish linking
../../target/debug/rivet deploy default
# copy build id
../../target/debug/rivet actor create default -t name=rng --build MY_BUILD_ID --region local --network-mode host --port protocol=tcp,name=http,host
# copy public_hostname and public_port
curl 127.0.0.1:20081
../../target/debug/rivet actor destroy default --id MY_ACTOR_ID
```

## Reference

- See `rivet --help` for more commands
- rivet.jsonc config spec at `packages/toolchain/src/config/mod.rs`
- WIP typedefs for actors [here](https://github.com/rivet-gg/rivet/blob/925b9b5c2f024f40615e910e9670655249eb2bc7/sdks/actor-types/src/internal/90_rivet_ns.ts)

## Known issues

- Only supports host networking
- Networking is not working (afaik)
- LZ4 compression for JS tars don't work (defaults to correct compression, no action needed)

## Troubleshooting

### `Error getting bootstrap: get project failed`

Make sure to run `rivet logout` if you reset the core cluster.

6 changes: 0 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -54,12 +54,6 @@ The backend package is a TypeScript package located at `packages/backend/`. This
- `packages/backend/cli/` – JSON CLI interface to the toolchain
- `packages/backend/runtime/` – Runtime code used to by the backend at runtime

### Backend Artifacts

Backend artifacts are files that are required to be generated for the backend to run.

Artifacts are automatically generated on Cargo build in `packages/backend-embed/build.rs`. Under the hood, this calls the `scripts/backend/build_artifacts.ts` script.

### Embedding Deno

Deno is automatically downloaded and installed to a temporary path in `packages/deno-embed`. This is used both at runtime for the toolchain and any build scripts that depend on Deno.
Loading