server_manager/lib.rs
1//! server-manager
2//!
3//! server-manager is a rust library for managing server processes.
4//! It encapsulates service startup, shutdown, and background daemon mode.
5//! Users can specify the PID file, log file paths, and other configurations
6//! through custom settings, while also passing in their own asynchronous
7//! server function for execution. The library supports both synchronous
8//! and asynchronous operations. On Unix and Windows platforms,
9//! it enables background daemon processes.
10
11pub(crate) mod cfg;
12pub(crate) mod config;
13pub(crate) mod manager;
14
15pub use config::r#struct::*;
16pub use manager::{r#struct::*, r#type::*};
17
18pub(crate) use manager::r#const::*;
19
20#[allow(unused_imports)]
21pub(crate) use std::{
22 fs,
23 path::{Path, PathBuf},
24 process::{Child, Command, ExitStatus, Output, Stdio, exit, id},
25};
26
27#[allow(unused_imports)]
28pub(crate) use tokio::runtime::Runtime;