Skip to main content

Crate anyrepair

Crate anyrepair 

Source
Expand description

§AnyRepair

A Rust crate for repairing malformed structured data including JSON, YAML, XML, TOML, CSV, INI, Markdown, and Diff with format auto-detection.

Re-exports§

pub use diff::DiffRepairer;
pub use error::RepairError;
pub use error::Result;
pub use json::JsonRepairer;
pub use key_value::EnvRepairer;
pub use key_value::IniRepairer;
pub use key_value::PropertiesRepairer;
pub use mcp_server::AnyrepairMcpServer;
pub use streaming::StreamingRepair;
pub use traits::Repair;

Modules§

csv
CSV repair module
diff
Diff/Unified diff repair module
error
Error types for the anyrepair crate
format_detection
Format detection heuristics
json
JSON repair module
key_value
Key-value format repair module (INI, .env, .properties)
markdown
Markdown repair module
mcp_server
MCP (Model Context Protocol) server for anyrepair
repairer_base
Generic repair loop: validator gate + ordered RepairStrategy pipeline.
streaming
Streaming repair for large files with minimal memory overhead
toml
TOML repair module
traits
Core traits for repair functionality
xml
XML repair module
yaml
YAML repair functionality

Constants§

SUPPORTED_FORMATS

Functions§

create_repairer
create_validator
detect_format
jsonrepair
normalize_format
repair
repair_with_format