Just have different mains

This commit is contained in:
asonix 2023-10-07 12:31:05 -05:00
parent 760b9d8c59
commit 71fbc4c55b

View file

@ -1,9 +1,5 @@
fn main() -> color_eyre::Result<()> {
run()
}
#[cfg(feature = "io-uring")] #[cfg(feature = "io-uring")]
fn run() -> color_eyre::Result<()> { fn main() -> color_eyre::Result<()> {
tokio_uring::start(async move { tokio_uring::start(async move {
pict_rs::PictRsConfiguration::build_default()? pict_rs::PictRsConfiguration::build_default()?
.install_tracing()? .install_tracing()?
@ -14,7 +10,7 @@ fn run() -> color_eyre::Result<()> {
} }
#[cfg(not(feature = "io-uring"))] #[cfg(not(feature = "io-uring"))]
fn run() -> color_eyre::Result<()> { fn main() -> color_eyre::Result<()> {
tokio::runtime::Builder::new_multi_thread() tokio::runtime::Builder::new_multi_thread()
.enable_all() .enable_all()
.build()? .build()?