Skip to main content

rewrit_protocol/
lib.rs

1//! Versioned NDJSON protocol shared by Rewrit adapters and the engine.
2
3#![forbid(unsafe_code)]
4
5pub mod adapter;
6pub mod events;
7pub mod ndjson;
8pub mod version;
9
10pub use adapter::{AdapterCommand, AdapterRequest};
11pub use events::{AdapterEvent, DoctorReport};
12pub use ndjson::{
13    decode_event_line, decode_events, encode_event_line, encode_request_line, ProtocolError,
14};
15pub use version::{
16    ADAPTER_REQUEST_SCHEMA_VERSION, EVENT_SCHEMA_VERSION, OBSERVATION_SCHEMA_VERSION,
17    REPORT_SCHEMA_VERSION,
18};