Skip to content

Commit

Permalink
Smaller release binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
mlund committed Jan 20, 2024
1 parent 910b52c commit 8a72309
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ log = "0.4"
pretty_env_logger = "0.5"

[profile.release]
strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
lto = true # Link-time optimization
strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
lto = true # Link-time optimization.
codegen-units = 1 # Compile the entire crate as a single unit.
panic = "abort" # Abort on panic.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn has_disk_image_extension(file: &std::ffi::OsString) -> Result<()> {
#[command(color = clap::ColorChoice::Auto)]
#[command(styles=styles())]
struct Cli {
/// Network address of Ultimate64.
/// Network address of ultimate device
#[clap(env = "ULTIMATE_HOST")]
host: String,
/// Subcommand to run
Expand Down

0 comments on commit 8a72309

Please sign in to comment.