asonix
d8d1ce1634
All checks were successful
/ tests (push) Successful in 2m51s
/ check (aarch64-unknown-linux-musl) (push) Successful in 2m44s
/ check (x86_64-unknown-linux-musl) (push) Successful in 2m5s
/ clippy (push) Successful in 2m56s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 2m38s
25 lines
682 B
Rust
25 lines
682 B
Rust
#[cfg(feature = "io-uring")]
|
|
fn main() -> color_eyre::Result<()> {
|
|
actix_web::rt::System::new().block_on(async move {
|
|
pict_rs::PictRsConfiguration::build_default()?
|
|
.install_tracing()?
|
|
.install_metrics()?
|
|
.run()
|
|
.await
|
|
})
|
|
}
|
|
|
|
#[cfg(not(feature = "io-uring"))]
|
|
fn main() -> color_eyre::Result<()> {
|
|
tokio::runtime::Builder::new_multi_thread()
|
|
.enable_all()
|
|
.build()?
|
|
.block_on(async move {
|
|
pict_rs::PictRsConfiguration::build_default()?
|
|
.install_tracing()?
|
|
.install_metrics()?
|
|
.run_on_localset()
|
|
.await
|
|
})
|
|
}
|