mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-24 18:41:06 +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")]
|
||||
fn run() -> color_eyre::Result<()> {
|
||||
fn main() -> color_eyre::Result<()> {
|
||||
tokio_uring::start(async move {
|
||||
pict_rs::PictRsConfiguration::build_default()?
|
||||
.install_tracing()?
|
||||
|
@ -14,7 +10,7 @@ fn run() -> color_eyre::Result<()> {
|
|||
}
|
||||
|
||||
#[cfg(not(feature = "io-uring"))]
|
||||
fn run() -> color_eyre::Result<()> {
|
||||
fn main() -> color_eyre::Result<()> {
|
||||
tokio::runtime::Builder::new_multi_thread()
|
||||
.enable_all()
|
||||
.build()?
|
||||
|
|
Loading…
Reference in a new issue