Skip to content

Instantly share code, notes, and snippets.

@Aisuko
Created June 17, 2023 03:16
Show Gist options
  • Save Aisuko/7e647215cf8a1752047d9d952f793ed6 to your computer and use it in GitHub Desktop.
Save Aisuko/7e647215cf8a1752047d9d952f793ed6 to your computer and use it in GitHub Desktop.
Cargo file for cargo build --release command
# The configuration of `cargo build --release`
[profile. Release]
debug = 1 # Whether debug information is included in the compiled code. 1 means that debug information is included, 0 means not.
# Whether incremental compilation is used.
# The incremental compilation can speed up compilation times by reusing previously compiled code,
# but it can also increase the size of the compiled code.
incremental = true
# Whether link-time optimization is used. Link-time optimization can improve the performance of the compiled code,
# but it also increases the size of he compiled code
lto = "off"
# how panics are handled in the compiled code. The possible values are `unwind`, `abort` and `panic=...`
# unwind: the panics are handled using stack unwinding
# abort: the programs will immediately terminate when a panic occurs
# panic=... means that a custom panic handler will be used
panic= "abort"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment