Add wip android/ios lib builds

This commit is contained in:
Ethan O'Brien
2025-11-30 11:55:22 -06:00
parent 9a072823a0
commit d4a5f0dd11
8 changed files with 358 additions and 1 deletions

View File

@@ -7,6 +7,14 @@ mod runtime;
#[macro_use]
mod macros;
#[cfg(feature = "library")]
#[cfg(target_os = "android")]
mod android;
#[cfg(feature = "library")]
#[cfg(target_os = "ios")]
mod ios;
use actix_web::{
rt,
App,
@@ -66,7 +74,7 @@ pub async fn run_server(in_thread: bool) -> std::io::Result<()> {
}
#[actix_web::main]
async fn stop_server() {
pub async fn stop_server() {
runtime::set_running(false);
println!("Stopping");
}