generated from eblume/project-template
Some checks failed
Build / validate (pull_request) Failing after 2s
Wire the existing merge engine over the network so the everyday config (local + hub_url) syncs through a hub. Transport ratified = axum HTTP/JSON (tech-spec §6.1, §12). - heph-core: SyncCursors model + Store::sync_state/record_sync over the sync_state table (per-peer push/pull HLC cursors). Incremental, so each exchange transfers only the tail. - hephd::sync: the hub router (POST /sync/push, GET /sync/pull?after=<hlc>) served from the shared LocalStore, and sync_once — a spoke's pull-then- merge, then push-tail exchange, advancing the cursors. Idempotent: a re-pushed op the hub already has is a no-op. - Daemon carries optional hub config; sync.now/sync.status handled at the daemon (they need the hub transport the store can't reach). conflicts. list/resolve now reachable over the unix socket too. - main: --mode local|server, --hub-url, --http-addr. server mode binds the hub HTTP endpoint on the same store; a local+hub_url spoke background- syncs on a 30s interval. - tests/sync_http.rs: two spokes converge through a real-HTTP hub on an ephemeral port — node propagation and a divergent-scalar conflict. Unauthenticated/single-owner for now; OIDC + per-user scoping is slice 10, client mode + RemoteStore is 9b. 100 tests green; clippy -D warnings + fmt + prek clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
43 lines
1 KiB
TOML
43 lines
1 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = ["crates/heph-core", "crates/hephd", "crates/heph"]
|
|
|
|
[workspace.package]
|
|
edition = "2021"
|
|
version = "0.0.0"
|
|
license = "LicenseRef-Proprietary"
|
|
publish = false
|
|
authors = ["Erich Blume <blume.erich@gmail.com>"]
|
|
rust-version = "1.85"
|
|
|
|
[workspace.dependencies]
|
|
rusqlite = { version = "0.32", features = ["bundled"] }
|
|
ulid = "1"
|
|
thiserror = "2"
|
|
anyhow = "1"
|
|
pulldown-cmark = { version = "0.13", default-features = false }
|
|
rrule = "0.13"
|
|
yrs = "0.26"
|
|
chrono = { version = "0.4", default-features = false, features = ["clock"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
tokio = { version = "1", features = [
|
|
"rt-multi-thread",
|
|
"net",
|
|
"io-util",
|
|
"macros",
|
|
"sync",
|
|
"time",
|
|
] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
clap = { version = "4", features = ["derive"] }
|
|
fs4 = "0.12"
|
|
axum = "0.8"
|
|
reqwest = { version = "0.13", default-features = false, features = [
|
|
"json",
|
|
"query",
|
|
] }
|
|
|
|
[profile.release]
|
|
lto = "thin"
|