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
+1 -1
View File
@@ -13,4 +13,4 @@ impl Plugin for MyPlugin {
}
}
export_plugin!(MyPlugin);
export_plugin!(Box::new(MyPlugin));
+3 -5
View File
@@ -1,14 +1,12 @@
use std::path::PathBuf;
use voxa_server::{ServerConfig, plugin::PluginInstance, vfs};
use voxa_server::{ServerConfig, vfs};
fn main() -> voxa_server::Result<()> {
let root = PathBuf::from("./");
let config: ServerConfig = vfs::read_config(&root.join("config.json"))?;
let mut server = config.build(&root);
server.add_plugin(PluginInstance::Static(Box::new(
test_plugin::MyPlugin::default(),
)));
let server = config.build(&root);
server.add_plugin(Box::new(test_plugin::MyPlugin::default()));
server.run()?;
Ok(())
}