pjson-rs-domain 0.5.0

Pure domain logic for PJS - WASM-compatible core
Documentation

PJS Domain Layer - Pure Business Logic

This crate contains the pure domain logic for PJS (Priority JSON Streaming Protocol) with ZERO external dependencies (except thiserror for error handling).

The domain layer is WASM-compatible and can be used in both native and WebAssembly environments.

Architecture

Following Clean Architecture principles:

  • Value Objects: Immutable, validated domain concepts (Priority, JsonPath, etc.)
  • Entities: Domain objects with identity (Frame, Stream)
  • Domain Events: State change notifications

Features

  • std (default): Standard library support
  • serde: Serialization support for WASM interop
  • wasm: Enables WASM-specific optimizations