oxframe_protocol/lib.rs
1//! Protocol shared by the engine (`oxframe-preview`), the CLI and `editor-ui`.
2//!
3//! This crate is the single source of truth: TypeScript types for
4//! `@oxframe/protocol` are generated from it with `ts-rs`.
5
6#![warn(missing_docs)]
7
8mod messages;
9mod meta;
10
11pub use messages::*;
12pub use meta::*;
13
14/// Incremented on every incompatible change of [`Command`], [`Event`] or the
15/// binary frame header. Every side compares it in `Hello`/`Ready`.
16pub const PROTOCOL_VERSION: u32 = 1;