msgbox 0.6.0

Simple, cross-platform message box GUI library. All it does is to show a message box modal with a OK button, which runs synchronously. All the other jobs stop until the user responds. It runs fine with OpenGL windows already open. It supports multi-platform, and maintains separate dependencies per platform, thus light-weight. - Synchronous Message Modal - Multi-platform (Linux GTK3+, Windows and OSX) - Light-weight
Documentation
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
use glib::error::BoolError;
use std::fmt;

#[derive(Debug, Copy, Clone)]
pub enum IconType {
    Error,
    Info,
    None,
}

impl fmt::Display for IconType {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        fmt::Debug::fmt(self, f)
    }
}

#[derive(thiserror::Error, Debug)]
pub enum MsgBoxError {
    #[cfg(not(any(target_os = "windows", target_os = "macos")))]
    #[error("failed to create a message box")]
    Create(#[from] BoolError),
    #[cfg(any(target_os = "windows", target_os = "macos"))]
    #[error("failed to create a message box")]
    Create(()),
}