Skip to main content

Crate mockforge_foundation

Crate mockforge_foundation 

Source
Expand description

Foundation types for MockForge

This crate sits at the bottom of the MockForge dependency graph. It has no dependencies on other mockforge- crates*, so both mockforge-core and the various extracted crates (mockforge-proxy, mockforge-import, etc.) can depend on it without creating circular dependencies.

Currently exports:

  • Error, Result — canonical error/result types used throughout MockForge
  • EncryptionError, EncryptionResult — encryption-specific error types

Re-exports§

pub use encryption_error::EncryptionError;
pub use encryption_error::EncryptionResult;
pub use error::Error;
pub use error::Result;

Modules§

ai_response
AI-assisted response generation for dynamic mock endpoints
ai_studio_types
AI Studio data types
clock
Pluggable clock — foundation’s now() defaults to Utc::now() but can be overridden (e.g., by mockforge-core::time_travel) via set_clock.
contract_diff_types
Core types for AI-powered contract diff analysis
contract_drift_types
Core types for contract drift and budget management
encryption_error
Error types and handling for encryption operations
error
Error types for MockForge Core
failure_injection
Enhanced failure injection system with per-tag include/exclude filters and error rate configuration.
incidents_types
Core types for incident management
intelligent_behavior
Foundational types for intelligent behavior
latency
Pillars: [Reality]
multi_tenant_types
Multi-tenant workspace configuration types
protocol
Protocol type enumeration for multi-protocol support
protocol_contract_types
Protocol-agnostic contract types
response_generation_trace
Response generation trace for debugging and observability
response_selection
Response selection modes for multiple responses/examples
schema_diff
Pillars: [Contracts]
state_machine
State machine types for scenario/behavior modeling
threat_modeling_types
Types for contract threat modeling
workspace_promotion
Workspace promotion types