Skip to content

Commit

Permalink
config(cargo): enable strip and lto for release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Aug 16, 2024
1 parent ccbb744 commit 83950e9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions data/cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# https://github.com/johnthagen/min-sized-rust
[profile.release]
strip = true
lto = true
4 changes: 4 additions & 0 deletions data/data.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,7 @@ external = "~/.config/typos/typos.toml"
[[apps.daktilo.paths]]
internal = "data/daktilo/daktilo.toml"
external = "~/.config/daktilo/daktilo.toml"

[[apps.cargo.paths]]
internal = "data/cargo/config.toml"
external = "~/.cargo/config.toml"
2 changes: 1 addition & 1 deletion data/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ require("lazy").setup({
lua = { "stylua" },
markdown = { "deno_fmt" },
proto = { "buf" },
python = { "ruff_format", "ruff_organize_imports" },
python = { "ruff_format" },
sh = { "shfmt" },
sql = { "sqlfluff" },
toml = { "trim_whitespace", "taplo" },
Expand Down

0 comments on commit 83950e9

Please sign in to comment.