| Crates.io | datasynth-output |
| lib.rs | datasynth-output |
| version | 0.2.1 |
| created_at | 2026-01-20 14:56:01.210917+00 |
| updated_at | 2026-01-24 21:46:43.931418+00 |
| description | Output sinks for CSV, Parquet, JSON, and streaming formats |
| homepage | |
| repository | |
| max_upload_size | |
| id | 2056739 |
| size | 166,886 |
Output sinks for CSV, JSON, and streaming formats.
datasynth-output provides the output layer for SyntheticData:
| Format | Description |
|---|---|
| CSV | Standard comma-separated values |
| JSON | Pretty-printed JSON arrays |
| JSONL | Newline-delimited JSON (streaming-friendly) |
use datasynth_output::{CsvSink, JsonSink, OutputConfig};
// CSV output
let sink = CsvSink::new("output/journal_entries.csv", config)?;
sink.write_batch(&entries)?;
// JSON streaming
let sink = JsonSink::new("output/entries.jsonl", OutputConfig::jsonl())?;
for entry in entries {
sink.write(&entry)?;
}
Apache-2.0 - See LICENSE for details.