| Crates.io | e_window_types |
| lib.rs | e_window_types |
| version | 0.1.0 |
| created_at | 2025-10-11 15:41:06.268889+00 |
| updated_at | 2025-10-11 15:41:06.268889+00 |
| description | Shared types for e_window and e_window_api |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1878310 |
| size | 12,302 |
A lightweight shared types crate for the e_window ecosystem, designed to optimize build dependencies and eliminate unnecessary compilation of heavy UI frameworks when only type definitions are needed.
This crate was created to solve a critical build dependency optimization issue: e_window_api was previously required to depend on the full e_window crate, which includes heavy dependencies like egui, eframe, and platform-specific UI libraries. This meant that any project using the high-level API had to compile the entire UI framework stack, even if they only needed basic type definitions for message box functionality.
The e_window_types crate provides shared type definitions that can be used across the entire e_window ecosystem:
The API communicates with e_window via process spawning rather than library dependencies, ensuring complete separation.
MessageBoxType - Defines dialog types (Ok, OkCancel, YesNo, etc.)MessageBoxIcon - Defines icon types (Information, Warning, Error, etc.)MessageBoxResult - Defines user response results (Ok, Cancel, Yes, No, etc.)All types support optional serde serialization when the serde feature is enabled.
serde - Enables serde serialization support for all types (optional)