Skip to main content

Crate bistun_core

Crate bistun_core 

Source
Expand description

§Shared Data Models (DTOs) & Foundation

Crate: bistun-core Ref: [011-LMS-DTO] Domain: Delivery Location: crates/bistun-core/src/lib.rs

Why: This crate serves as the authoritative central hub for the system’s Data Transfer Objects (DTOs) and shared vocabulary. It flattens the internal module hierarchy to provide a clean, ergonomic Public API for all consuming crates and sidecars. Impact: This module defines the contract layer of the entire Bistun ecosystem; any breaking changes here will instantly propagate across the service boundary, potentially corrupting serialization logic in all downstream SDKs.

§Architectural Topology

  • Tier: 0
  • Dependencies: serde, hashbrown, thiserror
  • Consumers: Downstream UI and NLP systems, Delivery layer microservices
  • State Model: Stateless
  • Design Patterns: Re-export

§Local Definitions

  • Re-export: A technique to provide a more ergonomic API by exposing items from submodules at the root level.
  • System of Record (SoR): The authoritative data source for global language capabilities. Guarantees immutability and reproducibility through versioned snapshots.

Re-exports§

pub use manifest::CapabilityManifest;
pub use manifest::TraitValue;
pub use traits::CasingRule;
pub use traits::Direction;
pub use traits::LmsRule;
pub use traits::MorphType;
pub use traits::NormRule;
pub use traits::PluralRule;
pub use traits::SegType;
pub use traits::TraitKey;
pub use traits::TransRule;
pub use error::LmsError;
pub use registry::LocaleProfile;
pub use registry::RegistryMetadata;
pub use registry::RegistryStore;
pub use registry::WormPayload;
pub use ops::ResolutionMetrics;
pub use ops::SdkState;
pub use ops::SyncMetrics;
pub use simulation::*;

Modules§

error
Global Error Definitions
manifest
Capability Manifest DTO
ops
Operational Models
registry
Registry Persistence Models
simulation
Simulation & Golden Master Tests Definitions
traits
Traits Dictionary & Enumerations