loki_weave

Crates.ioloki_weave
lib.rsloki_weave
version0.1.0
created_at2026-01-18 17:15:04.667514+00
updated_at2026-01-18 17:15:04.667514+00
descriptionWeave once, format everywhere.
homepage
repositoryhttps://github.com/roquess/loki_weave
max_upload_size
id2052695
size18,532
Roques Steve (roquess)

documentation

README

loki_weave

loki_weave is a Rust library for parsing, normalizing, and formatting structured data across multiple formats.

crates.io

It provides a unified abstraction to render data into common formats such as JSON, YAML, TOML, XML, and others, while keeping a consistent and extensible API.

Features

  • Support for multiple output formats
    • JSON
    • YAML
    • TOML
    • XML
    • Toon
  • Unified Formatter trait
  • Built on top of serde::Serialize
  • Designed to be extensible and format-agnostic
  • Clean and predictable formatting output

Architecture

Each format is implemented as a dedicated formatter exposing a common interface:

pub trait Formatter {
    fn format<T: Serialize>(&self, data: &T) -> Result<String, FormatError>;
}

This allows seamless switching between formats while keeping the same data model.

License

MIT

Commit count: 4

cargo fmt