mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
21 lines
358 B
Rust
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();
|
|
}
|