2023-10-07 16:48:58 +00:00
|
|
|
#[cfg(feature = "io-uring")]
|
2023-10-07 17:31:05 +00:00
|
|
|
fn main() -> color_eyre::Result<()> {
|
2024-03-11 04:02:03 +00:00
|
|
|
actix_web::rt::System::new().block_on(async move {
|
2023-10-07 17:29:01 +00:00
|
|
|
pict_rs::PictRsConfiguration::build_default()?
|
|
|
|
.install_tracing()?
|
|
|
|
.install_metrics()?
|
2024-05-04 04:05:17 +00:00
|
|
|
.install_crypto_provider()
|
2023-10-07 17:29:01 +00:00
|
|
|
.run()
|
|
|
|
.await
|
|
|
|
})
|
2023-10-07 16:48:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(not(feature = "io-uring"))]
|
2023-10-07 17:31:05 +00:00
|
|
|
fn main() -> color_eyre::Result<()> {
|
2023-10-07 17:22:17 +00:00
|
|
|
tokio::runtime::Builder::new_multi_thread()
|
|
|
|
.enable_all()
|
|
|
|
.build()?
|
2023-10-07 17:29:01 +00:00
|
|
|
.block_on(async move {
|
|
|
|
pict_rs::PictRsConfiguration::build_default()?
|
|
|
|
.install_tracing()?
|
|
|
|
.install_metrics()?
|
2024-05-04 04:05:17 +00:00
|
|
|
.install_crypto_provider()
|
2023-10-07 17:29:01 +00:00
|
|
|
.run_on_localset()
|
|
|
|
.await
|
|
|
|
})
|
2022-04-02 21:44:03 +00:00
|
|
|
}
|