Skip to content

Commit 836400f

Browse files
authored
add compile with performance optimizations (bevyengine#43)
1 parent c3e4e6d commit 836400f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,16 @@ version = "0.1.0"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66

7+
# Compile with Performance Optimizations:
8+
# https://bevyengine.org/learn/book/getting-started/setup/#compile-with-performance-optimizations
9+
10+
# Enable a small amount of optimization in debug mode
11+
[profile.dev]
12+
opt-level = 1
13+
14+
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
15+
[profile.dev.package."*"]
16+
opt-level = 3
17+
718
[dependencies]
819
bevy = "0.11"

0 commit comments

Comments
 (0)