From 6b5b570b45c051271877332c4028bcddbb65ee7f Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Mon, 13 Jun 2022 16:40:21 +0200 Subject: [PATCH] examples/window_run_return: Enable on Android (#2321) Android also supports `EventLoopExtRunReturn`. The user will still have to follow the README to turn this example into a `cdylib` and add the `ndk_glue::main()` initialization attribute, though. --- examples/window_run_return.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/window_run_return.rs b/examples/window_run_return.rs index d9a201ac..e6b3c662 100644 --- a/examples/window_run_return.rs +++ b/examples/window_run_return.rs @@ -8,7 +8,8 @@ target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", - target_os = "openbsd" + target_os = "openbsd", + target_os = "android", ))] fn main() { use std::{thread::sleep, time::Duration}; @@ -59,7 +60,7 @@ fn main() { } } -#[cfg(any(target_os = "ios", target_os = "android", target_arch = "wasm32"))] +#[cfg(any(target_os = "ios", target_arch = "wasm32"))] fn main() { println!("This platform doesn't support run_return."); }