mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
Work on runtime system
This commit is contained in:
@@ -1,34 +1,5 @@
|
||||
#![no_main]
|
||||
|
||||
use std::collections::HashMap;
|
||||
use unshell_lib::Component;
|
||||
use unshell_obfuscate::obfuscated_symbol;
|
||||
pub use unshell_lib::get_components;
|
||||
|
||||
#[obfuscated_symbol]
|
||||
fn test124() {
|
||||
println!("test");
|
||||
}
|
||||
|
||||
#[obfuscated_symbol]
|
||||
pub fn get_components() -> HashMap<&'static str, Box<dyn Component>> {
|
||||
let mut components: HashMap<&'static str, Box<dyn Component>> = HashMap::new();
|
||||
|
||||
#[cfg(feature = "client")]
|
||||
components.insert(
|
||||
unshell_lib::client::MODULE_NAME,
|
||||
Box::new(unshell_lib::client::ClientComponent::new()),
|
||||
);
|
||||
|
||||
components
|
||||
|
||||
// vec![
|
||||
// Feature::Client,
|
||||
// #[cfg(feature = "server")]
|
||||
// Feature::Server,
|
||||
// ]
|
||||
}
|
||||
|
||||
#[cfg(feature = "client")]
|
||||
pub use unshell_lib::client::*;
|
||||
#[cfg(feature = "server")]
|
||||
pub use unshell_lib::server::*;
|
||||
// Behold! The world's most sophisticated shared library!
|
||||
|
||||
Reference in New Issue
Block a user