Removed wasm because it limits our system
This commit is contained in:
@@ -13,4 +13,4 @@ impl Plugin for MyPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
export_plugin!(MyPlugin);
|
||||
export_plugin!(Box::new(MyPlugin));
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user