mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Work on runtime system
This commit is contained in:
Generated
-1
@@ -468,7 +468,6 @@ name = "unshell-breakout-module"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"unshell-lib",
|
||||
"unshell-obfuscate",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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