Updated release settings in cargo,toml

pull/1/head
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
/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
[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]
name = "royal_road_archiver_lib"
path = "src/library.rs"