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

42 lines
817 B
Rust

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
5 years ago
#[macro_use]
mod settings;
mod bridge;
mod editor;
mod error_handling;
mod redraw_scheduler;
5 years ago
mod renderer;
mod window;
5 years ago
#[macro_use]
extern crate derive_new;
#[macro_use]
extern crate rust_embed;
#[macro_use]
extern crate lazy_static;
use lazy_static::initialize;
use bridge::BRIDGE;
use std::process;
use window::ui_loop;
use window::window_geometry;
5 years ago
pub const INITIAL_DIMENSIONS: (u64, u64) = (100, 50);
5 years ago
fn main() {
if let Err(err) = window_geometry() {
eprintln!("{}", err);
process::exit(1);
};
window::initialize_settings();
redraw_scheduler::initialize_settings();
renderer::cursor_renderer::initialize_settings();
bridge::layouts::initialize_settings();
initialize(&BRIDGE);
ui_loop();
}