Skip to main content

gmeow_gts/
lib.rs

1// SPDX-FileCopyrightText: 2026 Blackcat Informatics® Inc. <paudley@blackcatinformatics.ca>
2// SPDX-License-Identifier: MIT OR Apache-2.0
3
4//! GTS (Graph Transport Substrate) format engine — `docs/GTS-SPEC.md` Draft v0.3.
5//!
6//! A GTS file is a CBOR Sequence of one or more segments (#3.1), each an
7//! append-only log: a Header followed by frames chained by BLAKE3 content-id
8//! (`"id"`/`"prev"`, §6/§9.1). [`reader::read`] verifies the chain and folds
9//! the log into a [`model::Graph`] (§7.5), degrading undecodable frames to
10//! opaque nodes (§7.6) instead of aborting — the reader is total.
11//!
12//! This crate is the Rust counterpart of the Python reference oracle
13//! (`src/gmeow_tools/gts/`); both are gated against the same frozen
14//! language-neutral conformance corpus in `vectors/` (§18).
15//! The Python side keeps the producer; this crate owns the format engine.
16
17pub mod codec;
18pub mod compact;
19pub mod cose;
20pub mod db;
21pub mod dumpdir;
22// emojihash + randomart now live in the standalone `visual-hashing` crate (#16);
23// re-exported here so `gmeow_gts::emojihash::…` paths keep resolving.
24pub use visual_hashing as emojihash;
25pub mod examples;
26pub mod files;
27pub mod from_nquads;
28#[cfg(feature = "okf")]
29pub mod from_okf;
30#[cfg(feature = "tar")]
31pub mod from_tar;
32pub mod from_trig;
33#[cfg(feature = "yaml-ld")]
34pub mod from_yamlld;
35pub mod mmr;
36pub mod model;
37pub mod nested;
38pub mod nquads;
39#[cfg(feature = "okf")]
40pub mod okf;
41pub mod openpgp;
42#[cfg(feature = "oxigraph-adapter")]
43pub mod oxigraph;
44pub mod policy;
45#[cfg(feature = "policy-config")]
46pub use policy::PolicyConfigError;
47pub use policy::{
48    evaluate_profile_policy, signature_trust, ProfileFinding, Severity, SignatureTrust, TrustPolicy,
49};
50#[cfg(feature = "rdf")]
51pub mod rdf;
52#[cfg(feature = "rdf-codecs")]
53pub mod rdf_codecs;
54pub mod rdf_events;
55pub mod reader;
56pub mod replication;
57#[cfg(feature = "sophia-adapter")]
58pub mod sophia;
59pub mod stream;
60#[cfg(feature = "tar")]
61pub mod tar;
62pub mod trig;
63pub mod verify;
64pub mod wire;
65pub mod writer;
66#[cfg(feature = "xsd")]
67pub mod xsd;
68#[cfg(feature = "yaml-ld")]
69pub mod yamlld;