Skip to main content

rpc/
lib.rs

1//! Transport-agnostic RPC layer for nomisync.
2//!
3//! Carries S-expression frames between any client (emacs over SSH, in-process CLI/TUI,
4//! future single-binary embedded-postgres) and the canonical native function registry.
5//! See `doc/emacs-rpc.org` for the protocol spec and the plan file for design rationale.
6
7pub mod account_order;
8pub mod chart;
9pub mod ctx;
10pub mod draft;
11pub mod envelope;
12pub mod forms;
13pub mod framing;
14#[cfg(test)]
15mod framing_depth_tests;
16#[cfg(test)]
17mod framing_limit_tests;
18#[cfg(test)]
19mod framing_split_tests;
20pub mod host_failure;
21pub mod host_prelude;
22pub mod lookup_log;
23pub(crate) mod lowering;
24pub mod mux;
25pub mod natives;
26pub mod option_labels;
27pub mod plist;
28pub mod preflight;
29pub mod references;
30pub(crate) mod resolve;
31pub mod response;
32pub mod script;
33pub mod session;
34pub mod status;
35pub(crate) mod stored;
36pub mod template;
37pub mod wasm;
38
39pub use ctx::{EpochBumper, InterruptHandle, ScriptCtx, ScriptLimits};
40pub use draft::{DraftSplit, DraftTag, TransactionDraft};
41pub use envelope::{
42    EnvelopeError, ErrorCode, Frame, Request, RequestId, Response, ResponsePayload,
43    format_response, read_frame, with_notices,
44};
45pub use framing::{FrameDecoder, FrameError, MAX_FRAME_BYTES};
46pub use response::{expr_to_value, parse_notices, parse_response, try_expr_to_value};
47pub use script::{ScriptError, compile_script, create_script, update_script_source};
48pub use session::{EvalOutcome, Session};
49pub use template::{TemplateError, compile_template, render_template, validate_source};