Work on runtime system

This commit is contained in:
Michael Mikovsky
2025-11-13 11:52:01 -07:00
parent 920a0f78e9
commit cc2b2960e8
18 changed files with 200 additions and 190 deletions
-1
View File
@@ -468,7 +468,6 @@ name = "unshell-breakout-module"
version = "0.1.0"
dependencies = [
"unshell-lib",
"unshell-obfuscate",
]
[[package]]
+3 -5
View File
@@ -10,15 +10,13 @@ crate-type = ["cdylib"]
[features]
default = ["client", "server"]
client = []
server = []
obfuscate = ["unshell-obfuscate/obfuscate"]
client = ["unshell-lib/client"]
server = ["unshell-lib/server"]
obfuscate = ["unshell-lib/obfuscate"]
[dependencies]
# unshell-modules = {path = "../unshell-modules"}
unshell-lib = {path = "../unshell-lib"}
unshell-obfuscate = {path = "../unshell-obfuscate"}
[profile.release]
+2 -31
View File
@@ -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!