Skip to main content

Crate dkit_core

Crate dkit_core 

Source
Expand description

§dkit-core

Core library for dkit — a Swiss army knife for data format conversion and querying.

This crate provides the foundational types and engines that power dkit:

  • value::Value — Unified data model representing JSON, CSV, YAML, TOML, and more
  • error::DkitError — Structured error types for parsing, writing, and querying
  • [format] — Readers and writers for 12+ data formats (JSON, CSV, YAML, TOML, XML, etc.)
  • query — Query engine with path navigation, filtering, sorting, and built-in functions

§Quick Start

use dkit_core::format::FormatReader;
use dkit_core::format::json::JsonReader;

let json = r#"{"name": "Alice", "age": 30}"#;
let reader = JsonReader;
let value = reader.read(json).unwrap();

Modules§

error
Core error types for format parsing, writing, and query evaluation.
format
Data format readers and writers.
query
Query engine: parser, evaluator, filter operations, and built-in functions.
value
Unified data model — the Value enum that all formats convert to and from.