mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Just have different mains
This commit is contained in:
parent
760b9d8c59
commit
71fbc4c55b
1 changed files with 2 additions and 6 deletions
|
@ -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()?
|
||||||
|
|
Loading…
Reference in a new issue