3 new primitives, registered in workspace members (39 crates total): - kei-diff (9 files, 27 tests): Structural JSON diff RFC 6902 subset (add/remove/replace). Pure computation. Index-based array diff (not LCS) matches drift-detection semantics. Round-trip property verified on 15+ fixtures. Zero sibling deps — pure utility. - kei-scheduler (12 files, 16 tests): Durable task scheduler (cron / at / interval) primitive. Engine-native (SCHEDULER_SCHEMA on kei-entity-store). Name-unique via custom migration. compute_next pure fn + CLI tick for external executor. - kei-watch (12 files, 30 tests): Filesystem watcher thin wrapper around notify 8.x. Sync API (no tokio). 50ms debounce. Cross-platform rename handling (macOS Modify(Name(Both)) vs Linux From/To pair). All crate-local [workspace] tables removed. Registered in _primitives/_rust/Cargo.toml. cargo check --workspace clean. Constructor Pattern: all source files <=200 LOC, all functions <=30 LOC. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
18 lines
425 B
TOML
18 lines
425 B
TOML
[package]
|
|
name = "kei-diff"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
rust-version = "1.75"
|
|
description = "Structural JSON diff (RFC 6902 subset: add/remove/replace). Pure computation primitive for drift detection in kei-replay and invalidation in kei-cache."
|
|
|
|
[lib]
|
|
name = "kei_diff"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "kei-diff"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|