Updated release settings in cargo,toml

This commit is contained in:
NA 2024-01-26 21:52:49 +00:00
parent cb265a9d9e
commit 55db7dce5c
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/target /target
/release

View file

@ -5,6 +5,13 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
opt-level = 'z' # Optimize for size
lto = true # Enable link-time optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations
panic = 'unwind' # unwind on panic.
strip = true # Strip symbols from binary. Gives significant space reductions
[lib] [lib]
name = "royal_road_archiver_lib" name = "royal_road_archiver_lib"
path = "src/library.rs" path = "src/library.rs"