Skip to main content

keel_core_api/
lib.rs

1//! Keel core API contract (contracts-v1).
2//!
3//! The single source of truth for the envelope types is
4//! `contracts/core_api.rs`; the crate compiles the vendored crate-local copy
5//! (`contract/core_api.rs`) so `cargo package` produces a self-contained
6//! crate, and `build.rs` asserts on every workspace build that the copy is
7//! byte-identical to the frozen contract file, so they can never drift. The
8//! [`policy`] module is the shared typed model of
9//! `contracts/policy.schema.json`, used by both the stub and the real core so
10//! their configuration semantics cannot diverge.
11
12pub mod policy;
13
14include!("../contract/core_api.rs");