slint/examples/safe-ui/src/lib.rs
2025-12-12 16:51:34 +01:00

21 lines
358 B
Rust

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
#![no_std]
extern crate alloc;
pub mod platform;
slint::include_modules!();
#[unsafe(no_mangle)]
pub extern "C" fn slint_app_main() {
platform::slint_init_safeui_platform();
let app = MainWindow::new().unwrap();
app.show().unwrap();
app.run().unwrap();
}