🎉 Initial Commit

This commit is contained in:
Lucy 2022-06-22 12:22:30 -04:00
parent 3a58d654ee
commit 5b9527461f
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1
5 changed files with 654 additions and 0 deletions

21
src/main.rs Normal file
View file

@ -0,0 +1,21 @@
// SPDX-License-Identifier: GPL-3.0-only
use color_eyre::{eyre::WrapErr, Result};
use tracing::metadata::LevelFilter;
use tracing_subscriber::{fmt, prelude::*, EnvFilter};
#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<()> {
color_eyre::install().wrap_err("failed to install color_eyre error handler")?;
tracing_subscriber::registry()
.with(fmt::layer())
.with(
EnvFilter::builder()
.with_default_directive(LevelFilter::INFO.into())
.from_env_lossy(),
)
.try_init()
.wrap_err("failed to initialize logger")?;
Ok(())
}