blob: dc7e17ecc3a2a3ac1883aedff6c665bf10b9234c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (C) 2022-2022 Fuwn <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
use divina::Divina;
#[tokio::main]
async fn main() {
// Preliminary pokes
divina::setup();
let mut divina = Divina::new();
// Store 'Divina.lua' configuration
divina.new_config().configure_config();
// Create a new compiler
divina.configure_compiler(divina_compile::Compiler::new());
// Handle CLI
divina.perform();
// Process doesn't exit on Unix properly, this solves it...
#[cfg(unix)]
std::process::exit(0);
}
|