lumina-platforms 0.1.0

Platform backends for Lumina Framework: desktop (winit), Android (JNI), iOS (UIKit), Web (WASM)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod desktop;
pub mod mobile;

#[cfg(target_os = "android")]
pub mod android;
#[cfg(target_os = "ios")]
pub mod ios;
#[cfg(target_arch = "wasm32")]
pub mod web;

pub trait Platform {
    fn name(&self) -> &'static str;
    fn init(&self);
    fn run(&self);
}