Skip to main content

khive_vcs_adapters/
lib.rs

1// Copyright 2026 Haiyang Li. Licensed under Apache-2.0.
2//
3//! KG import/export format adapters. See `docs/protocol.md` for the
4//! full pipeline description, parse strategy notes, and deferred format list.
5
6mod error;
7pub use error::AdapterError;
8
9mod record;
10pub use record::{EdgeRecord, EntityRecord};
11
12mod adapter;
13pub use adapter::FormatAdapter;
14
15mod json_adapter;
16pub use json_adapter::JsonFormatAdapter;
17
18/// Phase P0: format names accepted by the v0.5 adapter registry.
19pub const PHASE0_FORMATS: &[&str] = &["csv", "tsv", "json", "ndjson"];