Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into feat/esp-hal-unification
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez authored Mar 12, 2024
2 parents bacf786 + 2f269b1 commit fe4bb56
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ authors = ["{{ authors }}"]
edition = "2021"
license = "MIT OR Apache-2.0"

[profile.release]
debug = true

[dependencies]
esp-backtrace = { version = "0.11.0", features = [
"{{ mcu }}",
Expand Down Expand Up @@ -47,3 +44,17 @@ smoltcp = { version = "0.10.0", default-features = false, features = [
"socket-udp",
] }
{% endif -%}

[profile.dev]
# Rust debug is too slow.
# For debug builds always builds with some optimization
opt-level = "s"

[profile.release]
codegen-units = 1 # LLVM can perform better optimizations using a single thread
debug = 2
debug-assertions = false
incremental = false
lto = 'fat'
opt-level = 's'
overflow-checks = false

0 comments on commit fe4bb56

Please sign in to comment.