evorule-primitives 0.1.0

EvoRule base primitive types: the deterministic JSON value model and the I/O handler contract (single definition site, zero evorule-* dependencies)
Documentation
  • Coverage
  • 100%
    49 out of 49 items documented15 out of 38 items with examples
  • Size
  • Source code size: 204.0 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 668.5 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • EvoRuleLab

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 use shims. 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 (uses alloc only); forbid(unsafe_code).
  • Deterministic: object maps are BTreeMap-backed with deterministic iteration order; the value model never panics (conversions return Option / 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.