Skip to content

Commit

Permalink
Optimize release binary for size
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Jan 19, 2023
1 parent b004272 commit 07e3b1f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ description = "A Luau script runner"
keywords = ["cli", "lua", "luau", "scripts"]
categories = ["command-line-interface"]

[[bin]]
name = "lune"
path = "src/main.rs"

[profile.release]
strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
lto = true # Enable link-time optimization
panic = "abort" # Remove extra panic info

[dependencies]
anyhow = { version = "1.0.68" }
clap = { version = "4.1.1", features = ["derive"] }
Expand Down

0 comments on commit 07e3b1f

Please sign in to comment.