Skip to content

Commit

Permalink
add opt flag for debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
makeecat committed Sep 1, 2024
1 parent 1ee624c commit 4b19fdf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ categories = [
keywords = ["quadrotor", "quadcopter", "robotics", "drone", "simulation"]
readme = "README.md"

[profile.dev]
opt-level = 1 # Enable a small amount of optimization in the dev profile.
[profile.dev.package."*"]
opt-level = 3 # Enable a large amount of optimization in the dev profile for dependencies.
[profile.release]
codegen-units = 1 # Compile the entire crate as one unit.
lto = "thin" # Do a second optimization pass over the entire program, including dependencies.
[dependencies]
nalgebra = "0.33.0"
rand = "0.8.5"
Expand Down

0 comments on commit 4b19fdf

Please sign in to comment.