lesavka/common/src/lib.rs

25 lines
719 B
Rust

#![forbid(unsafe_code)]
// Re-export the code generated by build.rs (lesavka.rs, relay.rs, etc.)
// common/src/lib.rs
pub mod cli;
pub mod eye_source;
pub mod hid;
pub mod paste;
pub mod process_metrics;
#[allow(warnings)]
pub mod lesavka {
include!(concat!(env!("OUT_DIR"), "/lesavka_wrapped.rs"));
}
/// Print the CLI banner for the `lesavka-common` utility.
///
/// Inputs: none; the version comes from `CARGO_PKG_VERSION`.
/// Outputs: the banner text is written to stdout.
/// Why: this tiny binary is just a bannered entrypoint around the shared CLI
/// helper, so the side effect is intentionally concentrated in one place.
pub fn run_cli() {
println!("{}", cli::banner(env!("CARGO_PKG_VERSION")));
}