Module pillars

Module pillars 

Source
Expand description

Pillar metadata system for compile-time pillar tagging Pillar metadata system for compile-time pillar tagging

This module provides types and utilities for tagging modules, functions, and features with MockForge pillars. Pillars help organize code, enable pillar-based queries for test coverage and production usage, and guide users to relevant features.

§The Five Pillars

  • [Reality] – Everything that makes mocks feel like a real, evolving backend
  • [Contracts] – Schema, drift, validation, and safety nets
  • [DevX] – SDKs, generators, playgrounds, ergonomics
  • [Cloud] – Registry, orgs, governance, monetization, marketplace
  • [AI] – LLM/voice flows, AI diff/assist, generative behaviors

§Usage

Tag modules in their documentation comments:

//! Pillars: [Reality][AI]
//!
//! This module implements Smart Personas with relationship graphs
//! and AI-powered data generation.

Or use the Pillar enum programmatically:

use mockforge_core::pillars::{Pillar, PillarMetadata};

let metadata = PillarMetadata::new()
    .with_pillar(Pillar::Reality)
    .with_pillar(Pillar::Ai);

Structs§

PillarMetadata
Pillar metadata for tagging modules, functions, or features

Enums§

Pillar
MockForge pillar identifier