Skip to content

Commit

Permalink
feat(Cargo.toml): add optimized build profile
Browse files Browse the repository at this point in the history
  • Loading branch information
NTBBloodbath committed May 5, 2024
1 parent d541493 commit 0cf768b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ tokio = { version = "1.37.0", features = ["fs", "time", "rt-multi-thread", "macr
tree-sitter = "0.22.5"
tree-sitter-norg = "0.1.1"
tree-sitter-norg-meta = { git = "https://github.com/nvim-neorg/tree-sitter-norg-meta" }

[profile.optimized] # Size optimizations that will hurt build speed
inherits = "release" # Which profile we inherit
opt-level = "z" # Optimize for size
codegen-units = 1 # Build speed -> Executable size
strip = true # Remove debug symbols

0 comments on commit 0cf768b

Please sign in to comment.