EvoRule Primitives
Base primitive types shared across the EvoRule ecosystem: the deterministic
JSON value model (JsonValue, ObjectMap) and the object-safe async I/O
handler contract (IoHandler, IoResult).
- Single definition site: ecosystem crates re-export these types via
pub useshims. Rust identifies types by definition site, so re-exports never create new types — public API paths and type identities stay unchanged everywhere. - Zero evorule-* dependencies (base-primitive layer discipline, same
tier as
evorule-hash). #![no_std]compatible (usesalloconly);forbid(unsafe_code).- Deterministic: object maps are
BTreeMap-backed with deterministic iteration order; the value model never panics (conversions returnOption/Result).
Kani verification backend
Under cfg(kani) (Kani model checking), ObjectMap switches to an ordered
Vec backend (KaniMap) because CBMC's red-black-tree model of BTreeMap
explodes the state space on >= 2-key insertion. The backend keeps the API
compatible and the iteration order identical; production builds
(cfg(not(kani))) are unaffected.
License
AGPL-3.0-or-later. See LICENSE.