diff options
| author | Fuwn <[email protected]> | 2021-05-20 01:58:02 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-20 01:58:02 +0000 |
| commit | 1bd7e65a94289e444f067f4da28935df0baca9be (patch) | |
| tree | 9d54c9e91ac6a79f060ad069b9c1de34c34a844f /src/main.rs | |
| download | nitrous-1bd7e65a94289e444f067f4da28935df0baca9be.tar.xz nitrous-1bd7e65a94289e444f067f4da28935df0baca9be.zip | |
feat(nitrous): :star:
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..37c0fcc --- /dev/null +++ b/src/main.rs @@ -0,0 +1,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; } |