capnweb_core/protocol/
mod.rs

1// Cap'n Web Protocol Implementation
2// This module implements the actual Cap'n Web protocol specification
3// as documented at https://github.com/cloudflare/capnweb/blob/main/protocol.md
4
5// Official Cap'n Web wire protocol (primary)
6pub mod wire;
7
8// Legacy/internal modules
9pub mod capability_registry;
10pub mod evaluator;
11pub mod expression;
12pub mod ids;
13pub mod il_runner;
14pub mod message;
15pub mod nested_capabilities;
16pub mod parser;
17pub mod pipeline;
18pub mod remap_engine;
19pub mod resume_tokens;
20pub mod session;
21pub mod tables;
22pub mod variable_state;
23
24#[cfg(test)]
25mod tests;
26
27// Primary exports: Official Cap'n Web wire protocol
28pub use wire::{parse_wire_batch, serialize_wire_batch, WireExpression, WireMessage};
29
30// Export PropertyKey from wire module specifically to avoid conflicts
31pub use wire::PropertyKey as WirePropertyKey;
32
33// Legacy exports (for backward compatibility during transition)
34pub use capability_registry::*;
35pub use evaluator::*;
36pub use expression::PropertyKey as LegacyPropertyKey;
37pub use expression::{
38    ErrorExpression, ExportExpression, Expression, ImportExpression, PipelineExpression,
39    PromiseExpression, RemapExpression,
40};
41pub use ids::*;
42pub use il_runner::*;
43pub use message::*;
44pub use nested_capabilities::*;
45pub use parser::*;
46pub use pipeline::*;
47pub use remap_engine::*;
48pub use resume_tokens::*;
49pub use session::*;
50pub use tables::*;
51pub use variable_state::*;
52
53// Re-export PropertyKey as the primary one (wire format)
54pub use wire::PropertyKey;