23 lines
674 B
Rust
23 lines
674 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 hid;
|
|
pub mod paste;
|
|
|
|
#[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")));
|
|
}
|