compo-platform-loop 0.1.3

Cross-platform event loop implementation for the Compo declarative and reactive component framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use {compo::prelude::*, compo_platform_loop::prelude::run,tracing::info};

#[component]
async fn hello() {
    println!("Hello, world!");
    info!("Hello, world!");
}

#[cfg(not(target_os = "android"))]
fn main() {
    run(hello);
}

#[cfg(target_os = "android")]
fn main(vm: jni::JavaVM) {
    run(vm, hello);
}