Skip to main content

docattest_rust/protocol/
mod.rs

1//! Version 1 of the docattest adapter protocol as this adapter speaks it: the data types
2//! of the schemas in `protocol/schema/` (`types`) and the loop that reads requests and
3//! writes responses (`server`).
4
5mod server;
6mod types;
7
8pub use server::{Adapter, Answer, Error, Session, decode, serve};
9pub use types::*;
10
11/// The protocol number this adapter speaks: the core's own, since the adapter is built
12/// with the core it runs with.
13pub const VERSION: u64 = docattest::adapter::PROTOCOL;