You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
videl/src/main.rs

66 lines
898 B

#![cfg_attr(nightly, feature(never_type))]
#![cfg_attr(nightly, feature(box_syntax))]
#![cfg_attr(nightly, feature(const_fn))]
#![allow(dead_code)]
use cfg_if::cfg_if;
mod ext;
use ext::*;
mod error;
#[allow(unused_imports)]
use error::{
WrapErr as _,
Assign as _,
Result as VidelResult,
};
#[allow(unused_imports)]
use color_eyre::{
eyre::{
self,
eyre,
Result as ReportedResult,
},
};
mod consts;
mod util;
mod hash;
mod metadata;
mod resolve;
mod database;
mod config;
mod features;
mod args;
type Pointer = *const !;
fn install() -> ReportedResult<()>
{
color_eyre::install()?;
Ok(())
}
async fn begin() -> ReportedResult<i32>
{
install()?;
Ok(0)
}
#[tokio::main]
async fn main()
{
std::process::exit(match begin().await {
Ok(0) => return,
Err(err) => {
eprintln!("\nexited with error: {}", err);
1
},
Ok(v) => v
})
}