Skip to content

Commit

Permalink
fix: panic behaviour in no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
dadada committed Mar 18, 2024
1 parent 0159e87 commit 51d5d53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ a653rs-postcard = { git = "https://github.com/DLR-FT/a653rs-postcard.git", branc
a653rs-xng = { git = "https://github.com/DLR-FT/a653rs-xng.git", branch = "main", default-features = false }
xng-rs-log = { git = "https://github.com/DLR-FT/xng-rs-log.git", branch = "main", default-features = false }

[profile.dev]
panic = "abort" # Abort on panic

[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" # Abort on panic
panic = "abort" # Abort on panic
strip = true # Automatically strip symbols from the binary.

0 comments on commit 51d5d53

Please sign in to comment.