blue_build_process_management/
process.rs

1//! This module is responsible for managing processes spawned
2//! by this tool. It contains drivers for running, building, inspecting, and signing
3//! images that interface with tools like docker or podman.
4
5pub mod drivers;
6pub mod logging;
7pub mod signal_handler;
8
9pub static ASYNC_RUNTIME: std::sync::LazyLock<tokio::runtime::Runtime> =
10    std::sync::LazyLock::new(|| {
11        tokio::runtime::Builder::new_multi_thread()
12            .enable_all()
13            .build()
14            .unwrap()
15    });
16
17#[cfg(test)]
18pub(crate) mod test {
19    use std::sync::LazyLock;
20
21    pub const TEST_TAG_1: &str = "test-tag-1";
22    pub const TEST_TAG_2: &str = "test-tag-2";
23
24    pub static TIMESTAMP: LazyLock<String> = LazyLock::new(blue_build_utils::get_tag_timestamp);
25}