2023-12-13 02:08:03 +01:00
|
|
|
#[cfg(feature = "eyra")]
|
|
|
|
extern crate eyra;
|
|
|
|
|
2023-11-25 21:33:44 +01:00
|
|
|
use miette::IntoDiagnostic;
|
|
|
|
|
2022-08-03 15:11:00 +02:00
|
|
|
#[cfg(target_env = "musl")]
|
|
|
|
#[global_allocator]
|
|
|
|
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
|
|
|
|
2023-11-25 21:33:44 +01:00
|
|
|
fn main() -> miette::Result<()> {
|
|
|
|
#[cfg(feature = "pid1")]
|
|
|
|
pid1::Pid1Settings::new()
|
|
|
|
.enable_log(cfg!(feature = "pid1-withlog"))
|
|
|
|
.launch()
|
|
|
|
.into_diagnostic()?;
|
2023-02-14 23:29:54 +01:00
|
|
|
|
2023-11-25 21:33:44 +01:00
|
|
|
tokio::runtime::Builder::new_multi_thread()
|
|
|
|
.enable_all()
|
|
|
|
.build()
|
|
|
|
.unwrap()
|
|
|
|
.block_on(async { watchexec_cli::run().await })
|
2020-06-24 16:17:59 +02:00
|
|
|
}
|