From 07e3b1fc5e80d58a28693143f3f8b16f4671447b Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Thu, 19 Jan 2023 15:10:34 -0500 Subject: [PATCH] Optimize release binary for size --- Cargo.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 1b2d3ed..5bf604c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] }