Optimize release binary for size

This commit is contained in:
Filip Tibell 2023-01-19 15:10:34 -05:00
parent b0042726ce
commit 07e3b1fc5e
No known key found for this signature in database

View file

@ -8,6 +8,16 @@ description = "A Luau script runner"
keywords = ["cli", "lua", "luau", "scripts"] keywords = ["cli", "lua", "luau", "scripts"]
categories = ["command-line-interface"] 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] [dependencies]
anyhow = { version = "1.0.68" } anyhow = { version = "1.0.68" }
clap = { version = "4.1.1", features = ["derive"] } clap = { version = "4.1.1", features = ["derive"] }