Module
w3cos-cli/src/main.rs
Description
Pass strip/LTO/codegen-units options to cargo build for smaller release binaries. Currently output is ~2.4MB, this could bring it down to ~1MB.
Acceptance Criteria
- Add
--strip CLI flag (or enable by default in --release)
- Generate Cargo.toml profile with
strip = true, lto = true, codegen-units = 1
- Document the size reduction in output
Difficulty
Low
Relevant Files
crates/w3cos-cli/src/main.rs — CLI argument handling
crates/w3cos-compiler/src/codegen.rs — Cargo.toml generation (generate_cargo_toml)
Module
w3cos-cli/src/main.rsDescription
Pass strip/LTO/codegen-units options to
cargo buildfor smaller release binaries. Currently output is ~2.4MB, this could bring it down to ~1MB.Acceptance Criteria
--stripCLI flag (or enable by default in--release)strip = true,lto = true,codegen-units = 1Difficulty
Low
Relevant Files
crates/w3cos-cli/src/main.rs— CLI argument handlingcrates/w3cos-compiler/src/codegen.rs— Cargo.toml generation (generate_cargo_toml)