Skip to main content

flight_debug/
lib.rs

1//! The debug umbrella (TS `@flighthq/debug`): a registry of diagnostic subsystems, one debug session
2//! that installs a dev sink, raises log levels and runs subsystem guard enablers, and debug-gated
3//! timing spans. All state is caller-owned (D5): a `DebugState` for the registry and session, and
4//! the flight-log `LogState` it reports through. There is no native provider and no aggregate host.
5
6mod debug;
7mod debug_timing;
8mod types;
9
10pub mod contract;
11
12// Public lane: the pinned TS `index.ts` names the ten functions; the debug types and the D5 state
13// constructors their signatures require are public too.
14pub use contract::DebugGuardBinding;
15pub use contract::DebugOptions;
16pub use contract::DebugState;
17pub use contract::DebugStateRef;
18pub use contract::DebugSubsystemHooks;
19pub use contract::DebugSubsystemName;
20pub use contract::begin_debug_span;
21pub use contract::create_debug_state;
22pub use contract::disable_debug;
23pub use contract::enable_debug;
24pub use contract::enable_flight_diagnostics;
25pub use contract::end_debug_span;
26pub use contract::initialize_debug_state;
27pub use contract::is_debug_enabled;
28pub use contract::mark_debug_frame;
29pub use contract::measure_debug_span;
30pub use contract::register_debug_subsystem;
31pub use contract::unregister_debug_subsystem;