Removed wasm because it limits our system

This commit is contained in:
2025-09-01 09:19:35 +02:00
parent 533b9bcd28
commit 323f3c1df0
9 changed files with 64 additions and 2396 deletions
+3 -9
View File
@@ -1,15 +1,9 @@
#[macro_export]
macro_rules! export_plugin {
($plugin_type:ty) => {
static PLUGIN: std::sync::Mutex<Option<$plugin_type>> = std::sync::Mutex::new(None);
($p:expr) => {
#[unsafe(no_mangle)]
pub extern "C" fn init() {
let mut plugin = PLUGIN.lock().unwrap();
*plugin = Some(<$plugin_type>::default());
if let Some(plugin) = plugin.as_mut() {
plugin.init();
}
pub extern "C" fn load_plugin() -> Box<dyn Plugin> {
$p
}
};
}