repe 7.0.0

Rust implementation of the REPE RPC protocol (JSON-focused)
Documentation
//! REPE (Remote Efficient Protocol Extension) - Rust implementation
//!
//! Supports JSON, UTF-8, raw binary, and BEVE body formats.
//! Spec reference: <https://github.com/beve-org/beve>

#[cfg(not(target_arch = "wasm32"))]
pub mod async_client;
#[cfg(not(target_arch = "wasm32"))]
pub mod async_fleet;
#[cfg(not(target_arch = "wasm32"))]
pub mod async_io;
#[cfg(not(target_arch = "wasm32"))]
pub mod async_server;
#[cfg(not(target_arch = "wasm32"))]
pub mod client;
pub mod constants;
pub mod error;
#[cfg(not(target_arch = "wasm32"))]
pub mod fleet;
pub mod header;
#[cfg(not(target_arch = "wasm32"))]
pub mod io;
pub mod json_pointer;
pub mod message;
pub mod peer;
pub mod registry;
pub mod server;
#[cfg(not(target_arch = "wasm32"))]
mod server_request;
#[cfg(not(target_arch = "wasm32"))]
pub mod stream;
pub mod structs;
#[cfg(all(feature = "fleet-udp", not(target_arch = "wasm32")))]
pub mod udp_client;
#[cfg(all(feature = "fleet-udp", not(target_arch = "wasm32")))]
pub mod uniudp_fleet;
#[cfg(all(feature = "value-stream", not(target_arch = "wasm32")))]
pub mod value_stream;
#[cfg(all(feature = "websocket-wasm", target_arch = "wasm32"))]
pub mod wasm_client;
#[cfg(all(feature = "websocket", not(target_arch = "wasm32")))]
pub mod websocket_client;
#[cfg(all(feature = "websocket", not(target_arch = "wasm32")))]
pub mod websocket_limits;
#[cfg(all(feature = "websocket", not(target_arch = "wasm32")))]
pub mod websocket_server;

#[doc(hidden)]
pub mod derive {
    pub use repe_derive::RepeStruct;
}

/// Derive macro to generate [`structs::RepeStruct`] implementations.
pub use repe_derive::RepeStruct;

#[cfg(not(target_arch = "wasm32"))]
pub use async_client::AsyncClient;
#[cfg(not(target_arch = "wasm32"))]
pub use async_fleet::AsyncFleet;
#[cfg(not(target_arch = "wasm32"))]
pub use async_server::AsyncServer;
#[cfg(not(target_arch = "wasm32"))]
pub use client::Client;
pub use constants::{BodyFormat, ErrorCode, HEADER_SIZE, QueryFormat, REPE_SPEC, REPE_VERSION};
pub use error::RepeError;
#[cfg(not(target_arch = "wasm32"))]
pub use fleet::{
    ConnectSummary, DisconnectSummary, Fleet, FleetError, FleetOptions, HealthStatus, Node,
    NodeConfig, ReconnectSummary, RemoteResult, RetryPolicy,
};
pub use header::Header;
#[cfg(not(target_arch = "wasm32"))]
pub use io::{
    read_message, read_message_into, write_message, write_message_complex_slice,
    write_message_streaming, write_message_typed_slice,
};
pub use json_pointer::{evaluate as eval_json_pointer, parse as parse_json_pointer};

/// Re-exported from `beve` for the typed-numeric body fast path: the element
/// trait bound for [`MessageBuilder::body_typed_slice`] /
/// [`Message::decode_typed_slice`] and the complex element type. Lets callers
/// use the numeric body API without naming `beve` directly.
///
/// [`MessageBuilder::body_typed_slice`]: crate::message::MessageBuilder::body_typed_slice
/// [`Message::decode_typed_slice`]: crate::message::Message::decode_typed_slice
pub use beve::{BeveTypedSlice, Complex};
pub use message::{Message, MessageView};
pub use peer::{
    CallContext, NotifyBody, PeerHandle, PeerId, PeerRegistry, PeerSendError, PeerSink,
};
pub use registry::{Registry, RegistryCallable, RegistryError, WithContext};
#[cfg(not(target_arch = "wasm32"))]
pub use server::Server;
pub use server::{
    Execution, IntoTypedResponse, JsonTypedHandler, LockError, Lockable, Middleware, Next, Router,
    TypedResponse,
};
#[cfg(not(target_arch = "wasm32"))]
pub use stream::{
    CreditError, DEFAULT_BACKPRESSURE_TIMEOUT, DEFAULT_IDLE_TIMEOUT, DEFAULT_RECONNECT_TIMEOUT,
    DEFAULT_REPLAY_RING_BYTES, DEFAULT_WINDOW_BYTES, PendingResume, ReconnectOutcome,
    ResumeRejection, RingChunk, TransferControl, TransferRegistry, spawn_watchdog,
};
pub use structs::{RepeStruct, StructError};
#[cfg(all(feature = "fleet-udp", not(target_arch = "wasm32")))]
pub use udp_client::UniUdpClient;
#[cfg(all(feature = "fleet-udp", not(target_arch = "wasm32")))]
pub use uniudp_fleet::{SendResult, UniUdpFleet, UniUdpNode, UniUdpNodeConfig};
#[cfg(all(feature = "value-stream", not(target_arch = "wasm32")))]
pub use value_stream::{
    AsyncSvsClient, Compression, RouterValueStreamExt, StreamOpts, StreamOutput,
    pull_complex_slice, pull_complex_slice_async, pull_consume, pull_consume_async, pull_stream,
    pull_to_beve_file, pull_to_beve_zst_file, pull_to_file, pull_to_file_async,
    pull_to_file_trailer_verified, pull_to_file_trailer_verified_async,
    pull_to_file_verified_async, pull_to_vec, pull_to_vec_async, pull_typed_slice,
    pull_typed_slice_async, pull_value, pull_value_async,
};
#[cfg(all(feature = "websocket-wasm", target_arch = "wasm32"))]
pub use wasm_client::WasmClient;
#[cfg(all(feature = "websocket", not(target_arch = "wasm32")))]
pub use websocket_client::{AlreadySubscribed, WebSocketClient};
#[cfg(all(feature = "websocket", not(target_arch = "wasm32")))]
pub use websocket_limits::{DEFAULT_MAX_FRAME_SIZE, DEFAULT_MAX_MESSAGE_SIZE, WebSocketLimits};
#[cfg(all(feature = "websocket", not(target_arch = "wasm32")))]
pub use websocket_server::{
    ConnectionError, HandshakeContext, SharedWebSocketServer, ShutdownToken, WebSocketServer,
    is_websocket_upgrade, proxy_connection,
};