| Crates.io | loki_weave |
| lib.rs | loki_weave |
| version | 0.1.0 |
| created_at | 2026-01-18 17:15:04.667514+00 |
| updated_at | 2026-01-18 17:15:04.667514+00 |
| description | Weave once, format everywhere. |
| homepage | |
| repository | https://github.com/roquess/loki_weave |
| max_upload_size | |
| id | 2052695 |
| size | 18,532 |
loki_weave is a Rust library for parsing, normalizing, and formatting structured data across multiple formats.
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.
Formatter traitserde::SerializeEach 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.
MIT