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) <noreply@anthropic.com>
This commit is contained in:
Ragnor Comerford 2026-05-07 15:25:22 +02:00
parent c12f6adb0c
commit cd780e2d37
No known key found for this signature in database
3 changed files with 3 additions and 0 deletions

1
Cargo.lock generated
View file

@ -4639,6 +4639,7 @@ dependencies = [
name = "omnigraph-engine"
version = "0.4.1"
dependencies = [
"arc-swap",
"arrow-array",
"arrow-cast",
"arrow-ord",

View file

@ -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"

View file

@ -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" }