extern crate self as repe;
#[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 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;
#[cfg(all(feature = "websocket-wasm", any(target_arch = "wasm32", test)))]
mod notify_slot;
pub mod peer;
#[cfg(all(feature = "plugin", not(target_arch = "wasm32")))]
pub mod plugin;
pub mod registry;
#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
pub mod rest;
pub mod server;
#[cfg(not(target_arch = "wasm32"))]
mod server_request;
#[cfg(not(target_arch = "wasm32"))]
pub mod stream;
#[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;
pub use repe_core::{constants, structs};
#[doc(hidden)]
pub mod derive {
pub use repe_derive::{RepeStruct, methods};
}
#[doc(hidden)]
pub mod __private {
pub use repe_core::__private::serde_json;
}
pub use repe_derive::RepeStruct;
#[cfg(all(feature = "plugin", not(target_arch = "wasm32")))]
pub use repe_derive::plugin;
pub use repe_derive::methods;
#[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};
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, ResponseBody, 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(any(feature = "websocket", feature = "websocket-wasm"))]
pub use error::AlreadySubscribed;
#[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::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,
derive_accept_key, is_websocket_upgrade, proxy_connection,
};
#[cfg(all(feature = "websocket", not(target_arch = "wasm32")))]
pub use tokio_tungstenite;