mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Optimize release binary for size
This commit is contained in:
parent
b0042726ce
commit
07e3b1fc5e
1 changed files with 10 additions and 0 deletions
10
Cargo.toml
10
Cargo.toml
|
@ -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"] }
|
||||||
|
|
Loading…
Reference in a new issue