Skip to main content

Module dx_integration

Module dx_integration 

Source
Expand description

DX Ecosystem Integration

This module provides integration with the DX Serializer and DX Markdown for consistent, high-performance serialization and documentation across all Driven configuration types.

§Formats

  • DX LLM Format: Human and LLM-readable text format (26.8% more efficient than TOON)
  • DX Machine Format: Binary format for runtime (0.70ns field access)
  • DX Markdown: Token-optimized documentation format (73% token reduction)

§Usage

use driven::dx_integration::{DxSerializable, DxDocumentable};
use driven::DrivenConfig;

let config = DrivenConfig::default();

// Serialize to DX LLM format
let llm_text = config.to_dx_llm()?;

// Deserialize from DX LLM format
let loaded: DrivenConfig = DrivenConfig::from_dx_llm(&llm_text)?;

// Generate documentation in DX Markdown format
let doc = config.to_dx_markdown()?;

Re-exports§

pub use legacy::LegacyConverter;
pub use legacy::LegacyFormat;
pub use legacy::LegacySerializable;
pub use serializer as dx_serializer;

Modules§

legacy
Legacy Format Converters

Structs§

DxMarkdownConfig
Configuration for DX Markdown output

Enums§

DxMarkdownFormat
Output format for DX Markdown

Traits§

DxDocumentable
Trait for types that can generate DX Markdown documentation
DxSerializable
Trait for types that can be serialized to/from DX formats

Functions§

rules_to_dx_markdown
Generate documentation for a collection of rules