bhtune_runtime/lib.rs
1//! Shared application runtime for BHTune's command-line and HTTP adapters.
2//!
3//! This crate owns configuration resolution, database bootstrap, logging, history retention,
4//! driver setup, tune orchestration and safety, shared OPC helpers, and sample export
5//! serialization. Its source and direct dependencies do not use `clap` or an HTTP framework;
6//! adapters convert their own inputs into runtime types and keep transport-specific output at
7//! the boundary. The OPC DA gRPC client may bring transport crates transitively, but they are
8//! not exposed through this runtime API.
9
10#![cfg_attr(
11 test,
12 allow(
13 clippy::unwrap_used,
14 clippy::expect_used,
15 clippy::panic,
16 reason = "unit tests may use unwrap, expect, and panic; production code must return typed errors"
17 )
18)]
19
20pub mod cancel;
21pub mod config;
22pub mod db;
23pub mod driver;
24pub mod export;
25pub mod gateway;
26pub mod history;
27pub mod live_ownership;
28pub mod logging;
29pub mod retention;
30pub mod tune;
31
32#[cfg(test)]
33mod test_support;
34mod timing;