Mess with build parameters to make component binary smaller

This commit is contained in:
Michael Mikovsky
2025-12-20 14:08:17 -07:00
parent 514dd5c87b
commit c8cfa685ec
15 changed files with 76 additions and 23 deletions
+2
View File
@@ -667,6 +667,8 @@ version = "0.0.0"
dependencies = [
"proc-macro2",
"quote",
"rand",
"static_init",
"syn 2.0.109",
"unshell-crypt",
]
+2 -1
View File
@@ -7,4 +7,5 @@ RUSTFLAGS="-Zlocation-detail=none -Zfmt-debug=none" \
cargo +nightly build \
-Z build-std=std,panic_abort \
-Z build-std-features="optimize_for_size" \
--profile release $@
$@ \
--profile release
+3 -1
View File
@@ -16,7 +16,7 @@ extern crate unshell_lib;
#[dynamic]
static PAYLOAD_CONFIG: PayloadConfig = PayloadConfig {
id: symbol!("Test ID"),
components: unshell_lib::get_components(),
components: Vec::new(),
runtime_config: vec![RuntimeConfig {
parent_component: symbol!("client").to_string(),
name: symbol!("client runtime").to_string(),
@@ -52,6 +52,8 @@ fn main() {
// // modules.push(Module::new(&arg)?)
// }
// let modules = vec
// Run the manager, this is blocking.
let manager = Manager::start(&PAYLOAD_CONFIG, Vec::new());