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
22 changes: 21 additions & 1 deletion Cargo.lock

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

14 changes: 14 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ members = [
"engine/sdks/rust/depot-protocol",
"engine/sdks/rust/test-envoy",
"engine/sdks/rust/ups-protocol",
"engine/sdks/rust/universaldb-commit",
"rivetkit-rust/packages/actor-persist",
"rivetkit-rust/packages/client",
"rivetkit-rust/packages/engine-process",
Expand Down Expand Up @@ -655,6 +656,9 @@ members = [
[workspace.dependencies.rivet-ups-protocol]
path = "engine/sdks/rust/ups-protocol"

[workspace.dependencies.rivet-universaldb-commit]
path = "engine/sdks/rust/universaldb-commit"

[profile.dev]
overflow-checks = false
# "line-tables-only" produces just the line-number DWARF needed for stack
Expand All @@ -672,6 +676,16 @@ lto = "fat"
codegen-units = 1
opt-level = 3

# Release-grade optimization with DWARF line info and no symbol stripping so
# heaptrack can resolve native allocation backtraces during leak investigation.
# Uses thin LTO and more codegen units to keep frames un-inlined and builds fast.
[profile.profiling]
inherits = "release"
debug = 1
lto = "thin"
codegen-units = 16
strip = false

[profile.quick]
inherits = "dev"
debug = false # no debug info → faster link, smaller binary
Expand Down
86 changes: 54 additions & 32 deletions engine/artifacts/config-schema.json

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

5 changes: 5 additions & 0 deletions engine/artifacts/errors/actor.creation_rate_limit.json

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

2 changes: 1 addition & 1 deletion engine/packages/api-peer/src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub async fn set_tracing_config(
body: SetTracingConfigRequest,
) -> Result<SetTracingConfigResponse> {
// Broadcast message to all services via UPS
let message = serde_json::to_vec(&body)?;
let message = rivet_util::serde::json_to_vec!(&body)?;

ctx.ups()?
.publish(TracingConfigSubject, &message, PublishOpts::broadcast())
Expand Down
6 changes: 3 additions & 3 deletions engine/packages/cache/src/req_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl RequestConfig {
keys: cache_keys.clone(),
};

let payload = serde_json::to_vec(&message)?;
let payload = rivet_util::serde::json_to_vec!(&message)?;

if let Err(err) = ups
.publish(
Expand Down Expand Up @@ -495,12 +495,12 @@ impl RequestConfig {
keys,
getter,
|value: &Value| -> Result<Vec<u8>> {
serde_json::to_vec(&value)
rivet_util::serde::json_to_vec!(&value)
.map_err(Error::SerdeEncode)
.map_err(Into::into)
},
|value: &[u8]| -> Result<Value> {
serde_json::from_slice(value)
rivet_util::serde::json_from_slice!(value)
.map_err(Error::SerdeDecode)
.map_err(Into::into)
},
Expand Down
25 changes: 0 additions & 25 deletions engine/packages/config/src/config/api_public.rs

This file was deleted.

11 changes: 0 additions & 11 deletions engine/packages/config/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use serde::{Deserialize, Serialize};
use std::sync::LazyLock;

pub mod api_peer;
pub mod api_public;
pub mod auth;
pub mod cache;
pub mod clickhouse;
Expand All @@ -21,7 +20,6 @@ pub mod telemetry;
pub mod topology;

pub use api_peer::*;
pub use api_public::*;
pub use auth::*;
pub use cache::*;
pub use clickhouse::*;
Expand Down Expand Up @@ -74,9 +72,6 @@ pub struct Root {
#[serde(default)]
pub guard: Option<Guard>,

#[serde(default)]
pub api_public: Option<ApiPublic>,

#[serde(default)]
pub api_peer: Option<ApiPeer>,

Expand Down Expand Up @@ -122,7 +117,6 @@ impl Default for Root {
Root {
auth: None,
guard: None,
api_public: None,
api_peer: None,
pegboard: None,
logs: None,
Expand All @@ -146,11 +140,6 @@ impl Root {
self.guard.as_ref().unwrap_or(&DEFAULT)
}

pub fn api_public(&self) -> &ApiPublic {
static DEFAULT: LazyLock<ApiPublic> = LazyLock::new(ApiPublic::default);
self.api_public.as_ref().unwrap_or(&DEFAULT)
}

pub fn api_peer(&self) -> &ApiPeer {
static DEFAULT: LazyLock<ApiPeer> = LazyLock::new(ApiPeer::default);
self.api_peer.as_ref().unwrap_or(&DEFAULT)
Expand Down
Loading
Loading