From cd780e2d37ef9ce73d60cf682984a5bfe690a14e Mon Sep 17 00:00:00 2001 From: Ragnor Comerford Date: Thu, 7 May 2026 15:25:22 +0200 Subject: [PATCH] deps: add arc-swap to workspace for PR 2 catalog/schema_source wrapping PR 2 wraps the Omnigraph engine's catalog and schema_source fields in ArcSwap so reads stay zero-cost while apply_schema can swap atomically without &mut self. arc-swap lands as an unused workspace dep here so the follow-up commits that wrap fields can land in isolation. Co-Authored-By: Claude Opus 4.7 (1M context) --- Cargo.lock | 1 + Cargo.toml | 1 + crates/omnigraph/Cargo.toml | 1 + 3 files changed, 3 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 10f0055..0b1a6ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4639,6 +4639,7 @@ dependencies = [ name = "omnigraph-engine" version = "0.4.1" dependencies = [ + "arc-swap", "arrow-array", "arrow-cast", "arrow-ord", diff --git a/Cargo.toml b/Cargo.toml index 2878bf7..761f29b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,6 +56,7 @@ tower-http = { version = "0.6", features = ["trace"] } color-eyre = "0.6" tempfile = "3" ahash = "0.8" +arc-swap = "1" base64 = "0.22" ariadne = "0.4" regex = "1" diff --git a/crates/omnigraph/Cargo.toml b/crates/omnigraph/Cargo.toml index 3871904..58e573f 100644 --- a/crates/omnigraph/Cargo.toml +++ b/crates/omnigraph/Cargo.toml @@ -47,6 +47,7 @@ time = { workspace = true } async-trait = { workspace = true } url = { workspace = true } chrono = { workspace = true } +arc-swap = { workspace = true } [dev-dependencies] omnigraph-compiler = { path = "../omnigraph-compiler", version = "0.4.1" }