mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Mess with build parameters to make component binary smaller
This commit is contained in:
Generated
+2
@@ -667,6 +667,8 @@ version = "0.0.0"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"rand",
|
||||
"static_init",
|
||||
"syn 2.0.109",
|
||||
"unshell-crypt",
|
||||
]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user