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
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2026 EvoRule Project
// This file is part of EvoRule, licensed under GNU Affero General Public License v3 or later.
//! EvoRule primitives — base value types shared across the ecosystem.
//!
//! This crate is the single definition site for the deterministic JSON
//! value model ([`JsonValue`], [`ObjectMap`]) and the I/O handler contract
//! ([`IoHandler`], [`IoResult`]).
//!
//! # Design principles
//! - Zero evorule-\* dependencies (base-primitive layer discipline)
//! - `#![no_std]` compatible (uses `alloc` only)
//! - Deterministic iteration (`BTreeMap`-backed object maps)
//! - Never panics (all conversions return `Option` / `Result`)
//!
//! # Consumers
//! Ecosystem crates re-export these types via `pub use` shims, which keeps
//! their public API paths and type identities unchanged (Rust identifies
//! types by definition site — a re-export never creates a new type).
//!
//! # Modules
//! - [`value`] — `JsonValue` / `ObjectMap` deterministic data model
//! - [`io_handler`] — object-safe async I/O handler trait

#![no_std]
#![forbid(unsafe_code)]
#![deny(missing_docs)]
// Never-panic guarantees: forbid panic-prone patterns
#![deny(clippy::unwrap_used)]
#![deny(clippy::expect_used)]
#![deny(clippy::indexing_slicing)]
#![deny(clippy::panic)]

extern crate alloc;

pub mod io_handler;
pub mod value;

pub use io_handler::{IoHandler, IoResult};
pub use value::{JsonValue, ObjectMap};