aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 37c0fcc6d5715dd173b646e42625426fe1b6aa7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyleft (ɔ) 2021-2021 Fuwn
// SPDX-License-Identifier: GPL-3.0-only

#![warn(rust_2018_idioms)]
#![recursion_limit = "128"]

#[macro_use]
extern crate log;

#[cfg(target_family = "windows")]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

#[cfg(target_family = "unix")]
#[global_allocator]
static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;

mod cli;
mod nitrous;

use crate::nitrous::Nitrous;

#[tokio::main]
async fn main() { Nitrous::execute().await; }