mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
Make unshell-lib, and module system with components.
This commit is contained in:
@@ -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(())
|
||||
}() {
|
||||
|
||||
Reference in New Issue
Block a user