Cargo.toml 1.1 K · 34 lines · raw · history
| 1 | [package] |
| 2 | name = "simulator" |
| 3 | version = "0.1.0" |
| 4 | edition = "2024" |
| 5 | |
| 6 | [dependencies] |
| 7 | bevy = { version = "0.20.0" } |
| 8 | |
| 9 | # Enable a small amount of optimization in the dev profile. |
| 10 | [profile.dev] |
| 11 | opt-level = 1 |
| 12 | |
| 13 | # Enable a large amount of optimization in the dev profile for dependencies. |
| 14 | [profile.dev.package."*"] |
| 15 | opt-level = 3 |
| 16 | |
| 17 | # Enable more optimization in the release profile at the cost of compile time. |
| 18 | [profile.release] |
| 19 | # Compile the entire crate as one unit. |
| 20 | # Slows compile times, marginal improvements. |
| 21 | codegen-units = 1 |
| 22 | # Do a second optimization pass over the entire program, including dependencies. |
| 23 | # Slows compile times, marginal improvements. |
| 24 | lto = "thin" |
| 25 | |
| 26 | # Optimize for size in the wasm-release profile to reduce load times and bandwidth usage on web. |
| 27 | [profile.wasm-release] |
| 28 | # Default to release profile values. |
| 29 | inherits = "release" |
| 30 | # Optimize with size in mind (also try "z", sometimes it is better). |
| 31 | # Slightly slows compile times, great improvements to file size and runtime performance. |
| 32 | opt-level = "s" |
| 33 | # Strip all debugging information from the binary to slightly reduce file size. |
| 34 | strip = "debuginfo" |