-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
39 lines (31 loc) · 851 Bytes
/
Cargo.toml
File metadata and controls
39 lines (31 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[package]
name = "rust-physics-engine"
version = "0.4.0"
edition = "2021"
[dependencies]
bevy = "0.15.0"
rand = "0.8.5"
serde = { version = "1.0.215", features = ["derive"] }
toml = "0.8.19"
# Optional dependencies for version_3d (has known vulnerabilities)
macroquad = { version = "0.4.13", optional = true }
partial-borrow = { version = "1.0.1", optional = true }
[features]
default = []
version_3d = ["macroquad", "partial-borrow"]
[[bin]]
name = "version_2d"
path = "src/version_2d/main.rs"
[[bin]]
name = "version_3d"
path = "src/version_3d/main.rs"
required-features = ["version_3d"]
[profile.release]
lto = "fat"
codegen-units = 1
# Enable a small amount of optimization in the dev profile.
[profile.dev]
opt-level = 1
# Enable a large amount of optimization in the dev profile for dependencies.
[profile.dev.package."*"]
opt-level = 3