Skip to content
Closed
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
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
!sdks/full/rust/src
!packages
!resources/legacy/proto
!externals/

sdks/runtime
svc/**/*.md
Expand Down
1,126 changes: 563 additions & 563 deletions Cargo.toml

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions docs-internal/infrastructure/rust/GIT_DEPENDENCIES.md

This file was deleted.

8 changes: 2 additions & 6 deletions packages/api/actor/src/route/builds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,15 @@ pub async fn patch_tags(
let CheckOutput { env_id, .. } = ctx.auth().check(ctx.op_ctx(), &query, false).await?;

let tags = unwrap_with!(body.tags, API_BAD_BODY, error = "missing field `tags`");
let tags = serde_json::from_value(tags).map_err(|err| err_code!(API_BAD_BODY, error = err))?;

ensure_with!(
tags.as_object().map(|x| x.len()).unwrap_or_default() <= 64,
ACTOR_BUILD_INVALID_PATCH_CONFIG,
error = "Too many tags (max 64)."
);

let tags = serde_json::from_value(tags).map_err(|err| err_code!(API_BAD_BODY, error = err))?;

let build_res = ctx
.op(build::ops::get::Input {
build_ids: vec![build_id],
Expand Down Expand Up @@ -275,11 +276,6 @@ pub async fn create_build(
.op(build::ops::create::Input {
game_id: None,
env_id: Some(env_id),
tags: body
.tags
.map(serde_json::from_value)
.transpose()?
.unwrap_or_default(),
display_name: body.name,
content: build::ops::create::Content::New {
image_file: (*body.image_file).api_try_into()?,
Expand Down
3 changes: 0 additions & 3 deletions packages/services/build/src/ops/create.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::collections::HashMap;

use chirp_workflow::prelude::*;
use rivet_operation::prelude::proto::backend;

Expand All @@ -17,7 +15,6 @@ pub struct Input {
pub content: Content,
pub kind: BuildKind,
pub compression: BuildCompression,
pub tags: HashMap<String, String>,
}

#[derive(Debug)]
Expand Down
1 change: 0 additions & 1 deletion packages/services/build/src/ops/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub mod create;
pub mod get;
pub mod patch_tags;
pub mod prewarm_ats;
pub mod resolve_for_tags;
34 changes: 0 additions & 34 deletions packages/services/build/tests/prewarm_ats.rs

This file was deleted.

2 changes: 1 addition & 1 deletion packages/services/ds/src/workflows/server/pegboard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ async fn setup(
},
routing: pp::PortRouting::GameGuard,
},
)),
),
Routing::Host { protocol } => (
crate::util::pegboard_normalize_port_label(port_label),
pp::Port {
Expand Down
26 changes: 21 additions & 5 deletions scripts/cargo/update_workspace.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env -S deno run --allow-net --allow-env --allow-read --allow-write

import { parse, stringify } from "@std/toml";
import { walk } from "@std/fs";
import { walk, exists } from "@std/fs";
import { join, relative } from "@std/path";

const rootDir = join(import.meta.dirname, "../..");
Expand All @@ -11,13 +11,29 @@ async function updateCargoToml() {
const workspaceTomlContent = await Deno.readTextFile(workspaceTomlPath);
const workspaceToml = parse(workspaceTomlContent);

const entries = async function*() {
for await (const entry of walk(join(rootDir, "packages"), {
includeDirs: false,
exts: ["toml"],
})) {
yield entry;
}

// Yield from OSS
if (await exists(join(rootDir, "oss"))) {
for await (const entry of walk(join(rootDir, "oss", "packages"), {
includeDirs: false,
exts: ["toml"],
})) {
yield entry;
}
}
}();

// Find all workspace members
const members: string[] = [];
for await (
const entry of walk(join(rootDir, "packages"), {
includeDirs: false,
exts: ["toml"],
})
const entry of entries
) {
// Exclude infra packages
if (
Expand Down
1 change: 0 additions & 1 deletion sdks/fern/definition/actor/builds.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions sdks/full/go/actor/builds.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions sdks/full/openapi/openapi.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions sdks/full/openapi_compat/openapi.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions sdks/full/rust-cli/docs/ActorCreateActorRequest.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions sdks/full/rust-cli/docs/ActorPrepareBuildRequest.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions sdks/full/rust-cli/docs/ProvisionPoolType.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions sdks/full/rust-cli/src/models/actor_prepare_build_request.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions sdks/full/rust/docs/ActorPrepareBuildRequest.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions sdks/full/rust/docs/ProvisionPoolType.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading