Skip to main content

Crate alpe_core

Crate alpe_core 

Source
Expand description

§alpe-core

Core domain types, error hierarchy, and pure business logic for the Alpe platform.

This crate is the foundation of the Alpe architecture. It contains zero IO — all types and functions are pure, deterministic, and 100% unit-testable. Every other crate in the workspace depends on alpe-core.

§Modules

§Design Principles

  • Pure logic: No IO, no async, no side effects — every function is deterministic
  • Type safety: Invalid states are unrepresentable where possible
  • Test-first: All modules are developed with strict TDD (RED → GREEN → Refactor)
  • Documentation as code: #![deny(missing_docs)] enforces documentation on every public item

Modules§

error
Unified error hierarchy for the Alpe platform. Unified error hierarchy for the Alpe platform.
jurisdiction
EU jurisdiction types and sovereignty-aware replication rules. EU jurisdiction types and sovereignty-aware replication rules.
plan
Service plans and resource limits (compute, database). Compute and database service plans with resource limits.
project
Project specification and validation. Project specification and validation.
resource
Resource state machine and metadata. Resource state machine and metadata.
validation
Input validation rules (DNS label constraints). Input validation rules for the Alpe platform.