| Crates.io | datasynth-config |
| lib.rs | datasynth-config |
| version | 0.2.1 |
| created_at | 2026-01-20 14:59:54.95314+00 |
| updated_at | 2026-01-24 21:47:07.953552+00 |
| description | Configuration schema, validation, and presets for synthetic data generation |
| homepage | |
| repository | |
| max_upload_size | |
| id | 2056746 |
| size | 209,941 |
Configuration schema, validation, and industry presets for synthetic data generation.
datasynth-config provides the configuration layer for SyntheticData:
| Section | Description |
|---|---|
global |
Industry, dates, seed, performance settings |
companies |
Company codes, currencies, volume weights |
chart_of_accounts |
COA complexity and structure |
transactions |
Line items, amounts, sources, temporal patterns |
master_data |
Vendors, customers, materials, assets, employees |
document_flows |
P2P, O2C configuration |
intercompany |
IC transaction types and transfer pricing |
balance |
Opening balances, trial balance generation |
subledger |
AR, AP, FA, inventory settings |
fx |
Currency and exchange rate settings |
period_close |
Close tasks and schedules |
fraud |
Fraud injection rates and types |
internal_controls |
SOX controls and SoD rules |
anomaly_injection |
Anomaly rates and labeling |
data_quality |
Missing values, typos, duplicates |
graph_export |
ML graph export formats |
output |
Output format and compression |
| Industry | Description |
|---|---|
manufacturing |
Heavy P2P, inventory, fixed assets |
retail |
High O2C volume, seasonal patterns |
financial_services |
Complex intercompany, high controls |
healthcare |
Regulatory focus, seasonal insurance |
technology |
SaaS revenue patterns, R&D capitalization |
use datasynth_config::{Config, ConfigValidator};
// Load and validate configuration
let config = Config::from_yaml_file("config.yaml")?;
let validator = ConfigValidator::new();
validator.validate(&config)?;
// Use industry preset
let config = Config::preset_manufacturing(Complexity::Medium);
period_months: 1-120 (max 10 years)compression_level: 1-9 when enabledApache-2.0 - See LICENSE for details.