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
UIandNLPsystems,Deliverylayer microservices - State Model:
Stateless - Design Patterns:
Re-export
§Local Definitions
Re-export: A technique to provide a more ergonomicAPIby 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::*;