Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

980 B
Raw Blame
#![feature(iterator_try_collect)]

#[macro_use]
extern crate libtest_mimic_collect;

mod dispatcher;
mod display;
mod error;
mod event_loop;
mod keybinding_listener;
mod models;
mod mouse_listener;
mod native_window;
mod platform_event;
mod platform_impl;
mod thread_bound;
mod window_listener;

pub use dispatcher::*;
pub use display::*;
pub use error::*;
pub use event_loop::*;
pub use keybinding_listener::*;
pub use models::*;
pub use mouse_listener::*;
pub use native_window::*;
pub use platform_event::*;
pub use thread_bound::*;
pub use window_listener::*;

pub fn main() {
  // Due to macOS requiring the main thread for some UI APIs, these
  // tests must execute on the main thread. Until this is natively
  // supported via cargo's test harness, we use `libtest_mimic_collect`.
  //
  // To run these tests, run `cargo test <...args> -- --test-threads=1`.
  //
  // Ref: https://github.com/rust-lang/rust/issues/104053
  libtest_mimic_collect::TestCollection::run();
}