blob: 8c9f8229a95969477b9672a389de92e894fe41eb (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (C) 2021-2021 Fuwn
// SPDX-License-Identifier: GPL-3.0-only
#![feature(
type_ascription,
hash_set_entry,
type_name_of_val,
decl_macro,
proc_macro_hygiene
)]
#![deny(
warnings,
nonstandard_style,
unused,
future_incompatible,
rust_2018_idioms,
unsafe_code
)]
#![deny(clippy::all, clippy::nursery, clippy::pedantic)]
#![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; }
|