mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
21 lines
351 B
Rust
21 lines
351 B
Rust
mod graphics;
|
|
mod gui;
|
|
mod rects_and_texts;
|
|
mod roc;
|
|
|
|
use crate::roc::RocElem;
|
|
|
|
extern "C" {
|
|
#[link_name = "roc__renderForHost_1_exposed"]
|
|
fn roc_render() -> RocElem;
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn rust_main() -> i32 {
|
|
let root_elem = unsafe { roc_render() };
|
|
|
|
gui::render("test title".into(), root_elem);
|
|
|
|
// Exit code
|
|
0
|
|
}
|