Skip to main content

varta_client/
lib.rs

1#![deny(missing_docs, unsafe_op_in_unsafe_fn, rust_2018_idioms)]
2#![forbid(clippy::dbg_macro, clippy::print_stdout)]
3
4//! Varta agent API — `Varta::connect` opens a Unix Domain Socket to the
5//! observer; `Varta::beat` emits a fire-and-forget 32-byte VLP frame with zero
6//! post-init heap traffic.
7//!
8//! The crate re-exports [`Frame`], [`Status`], and [`DecodeError`] from
9//! `varta-vlp` so downstream consumers depend on a single facade.
10
11pub mod client;
12
13#[cfg(feature = "panic-handler")]
14pub mod panic;
15
16pub use client::{classify_send_error, BeatOutcome, Varta};
17pub use varta_vlp::{DecodeError, Frame, Status, NONCE_TERMINAL};
18
19/// Install the panic hook — see [`panic::install`] for the full contract.
20#[cfg(feature = "panic-handler")]
21pub use panic::install as install_panic_handler;