Make unshell-lib, and module system with components.

This commit is contained in:
Michael Mikovsky
2025-11-08 14:56:03 -07:00
parent 8f33945633
commit 3dba32264c
27 changed files with 461 additions and 311 deletions
+4 -10
View File
@@ -1,16 +1,11 @@
use unshell_modules::{Manager, Module, ModuleError, module_interface};
use unshell_lib::{
ModuleError,
module::{Manager, Module},
};
#[macro_use]
extern crate log;
module_interface! {
Interface {
fn test1();
fn test2();
fn test3();
}
}
fn main() {
// Init the logger (This uses like 600MB of storage)
pretty_env_logger::init();
@@ -26,7 +21,6 @@ fn main() {
modules.push(Module::new(&arg)?)
}
Manager::run(modules);
// manager.join();
Ok(())
}() {