kitgit

tirbofish/dropbear · commit

726ca434d30ebb0bbbdf623d605d87988532e7e7

preparing for wasm scripting. this is so tedious :(

Unverified

tk <4tkbytes@pm.me> · 2025-09-12 16:01

view full diff

diff --git a/Cargo.toml b/Cargo.toml
index 81b26bc..e4c2e8e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -50,7 +50,7 @@ wgpu = "26"
 winit = { version = "0.30", features = [] }
 zip = "4.6"
 walkdir = "2.3"
-wasmtime = "36.0"
+wasmer = { version = "6.0" }
 
 [workspace.dependencies.image]
 version = "0.25"
diff --git a/dropbear-engine/Cargo.toml b/dropbear-engine/Cargo.toml
index 7d184cf..f59464d 100644
--- a/dropbear-engine/Cargo.toml
+++ b/dropbear-engine/Cargo.toml
@@ -32,7 +32,6 @@ hecs.workspace = true
 once_cell.workspace = true
 parking_lot.workspace = true
 lazy_static.workspace = true
-tokio.workspace = true
 
 [target.'cfg(not(target_os = "android"))'.dependencies]
 rfd.workspace = true
diff --git a/dropbear-engine/src/lib.rs b/dropbear-engine/src/lib.rs
index cb37edd..36e5a2f 100644
--- a/dropbear-engine/src/lib.rs
+++ b/dropbear-engine/src/lib.rs
@@ -17,9 +17,9 @@ use std::io::Write;
 use chrono::Local;
 use egui::TextureId;
 use egui_wgpu_backend::ScreenDescriptor;
+use futures::executor::block_on;
 use gilrs::{Gilrs, GilrsBuilder};
 use spin_sleep::SpinSleeper;
-use tokio::task::LocalSet;
 use std::{
     fmt::{self, Display, Formatter},
     sync::Arc,
@@ -404,20 +404,10 @@ impl App {
     /// - setup: A closure that can initialise the first scenes, such as a menu or the game itself.
     /// It takes an input of a scene manager and an input manager, and expects you to return back the changed
     /// managers.
-    pub async fn run<F>(config: WindowConfiguration, app_name: &str, setup: F) -> anyhow::Result<()>
+    pub fn run<F>(config: WindowConfiguration, app_name: &str, setup: F) -> anyhow::Result<()>
     where
         F: FnOnce(scene::Manager, input::Manager) -> (scene::Manager, input::Manager),
     {
-        // if cfg!(debug_assertions) {

Large diffs are not rendered by default. Showing the first 50 of 3078 lines. Show full diff