Co-Authored-By: deepseek-v4.1-flash (opencode-go) via CodeCraft
34 lines
828 B
TOML
34 lines
828 B
TOML
[package]
|
|
name = "dungeoncraft"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
macroquad = { version = "0.4" }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
panic = "abort"
|
|
codegen-units = 1
|
|
|
|
[profile.dev]
|
|
opt-level = 1
|
|
|
|
# desktop builds (tools/build_desktop.py): optimised like release, but compiled on all cores
|
|
# (several codegen units, thin LTO); release keeps one unit and full LTO for the smallest,
|
|
# fastest WASM
|
|
[profile.desktop]
|
|
inherits = "release"
|
|
lto = "thin"
|
|
codegen-units = 16
|
|
|
|
# desktop builds: system file dialog (xdg portal on Linux), sound output and gamepads
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
rfd = { version = "0.17", default-features = false, features = ["xdg-portal"] }
|
|
cpal = "0.18"
|
|
gilrs = "0.11"
|