Cotton code
22 lines · 1.1 KB · RustRaw
//! The two source readers — the port of//! `packages/import-core/src/adapters/*`.//!//! An adapter is a PURE READER of one export format and nothing else. It never//! decides direction, identity, idempotency or provenance: it turns bytes (or,//! here, a `&str` and a `serde_json::Value`) into the parse-result types//! [`crate::import::normalize`] declares, and the normalizer decides everything//! after that. Adding Telegram later is a third module here and nothing else.//!//! Two formats, and spec §2.3 ranks them://!//! * [`wce`] — **primary.** WhatsApp-Chat-Exporter JSON, read from the user's//!   own local device backup. The only route that carries real message ids, the//!   reply graph and reactions, with no message cap and nothing a counterparty//!   can veto.//! * [`chat_txt`] — **fallback.** WhatsApp's own per-chat `_chat.txt` share//!   sheet export. Permanently poorer — no ids, no replies, no reactions, no//!   timezone — and it exists because a person can always produce one with no//!   tooling at all.pub mod chat_txt;pub mod wce;