mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-01-12 08:12:36 +08:00
Add wip android/ios lib builds
This commit is contained in:
10
src/lib.rs
10
src/lib.rs
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user