mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-15 01:55:13 +02:00
Optional failpoints feature (dep:fail + fail/failpoints, deliberately NOT enabling omnigraph/failpoints), a maybe_fail/ScopedFailPoint module returning Diagnostic-typed injected errors, and two call sites in apply_config_dir: cluster_apply.after_payload_phase (the crash point: blobs on disk, state untouched) and cluster_apply.before_state_write (routes through the persisted-statuses revert contract; a cfg_callback here can mutate state.json to make the CAS check fail organically). Feature off compiles to Ok(()) — zero behavior change. Tests live in a separate integration binary because the fail registry is process-global. Also refresh the crate description (stale 'read-only' since Stage 3A). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
30 lines
1 KiB
TOML
30 lines
1 KiB
TOML
[package]
|
|
name = "omnigraph-cluster"
|
|
version = "0.6.2"
|
|
edition = "2024"
|
|
description = "Cluster configuration validation, planning, and config-only apply for Omnigraph."
|
|
license = "MIT"
|
|
repository = "https://github.com/ModernRelay/omnigraph"
|
|
homepage = "https://github.com/ModernRelay/omnigraph"
|
|
documentation = "https://docs.rs/omnigraph-cluster"
|
|
|
|
[features]
|
|
# Fault-injection hooks for the apply protocol (crash-mid-apply, CAS-race
|
|
# tests). Deliberately does NOT enable omnigraph/failpoints.
|
|
failpoints = ["dep:fail", "fail/failpoints"]
|
|
|
|
[dependencies]
|
|
omnigraph-compiler = { path = "../omnigraph-compiler", version = "0.6.2" }
|
|
omnigraph = { package = "omnigraph-engine", path = "../omnigraph", version = "0.6.2" }
|
|
fail = { workspace = true, optional = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
serde_yaml = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
time = { workspace = true }
|
|
ulid = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tempfile = { workspace = true }
|
|
tokio = { workspace = true }
|