Skip to content

Commit

Permalink
build: optimize binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
karnpapon committed Apr 6, 2024
1 parent 70fd2e0 commit cf6d05f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oscd"
version = "0.1.4"
version = "0.1.5"
edition = "2021"
authors = ["karnpapon <[email protected]>"]
license = "MIT"
Expand All @@ -24,4 +24,11 @@ clap = "3.2.15"
nom = "7.1.1"
rustyline = "11.0.0"
nom_locate = "4.0.0"
rustyline-derive = "0.8.0"
rustyline-derive = "0.8.0"

[profile.release]
panic = "abort" # Strip expensive panic clean-up logic
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "z" # Optimize for binary size
strip = true # Remove debug symbols

0 comments on commit cf6d05f

Please sign in to comment.