Files
glite/Cargo.toml
Christian Nieves 2117326f90 my first crate
2024-12-09 20:41:32 -06:00

62 lines
1.5 KiB
TOML

cargo-features = ["codegen-backend"]
[package]
name = "glite"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "first_app"
[[bin]]
name = "minesweeper"
[[bin]]
name = "snake"
[features]
debug = []
[dependencies]
bevy = { version = "0.15.0", features = ["dynamic_linking"] }
bevy-inspector-egui = "0.28.0"
colored = "2.1.0"
k = "0.32.0"
rand = "0.8.5"
run = "0.1.0"
# Enable a small amount of optimization in the dev profile.
[profile.dev]
opt-level = 1
codegen-backend = "cranelift"
# Enable a large amount of optimization in the dev profile for dependencies.
[profile.dev.package."*"]
codegen-backend = "llvm"
opt-level = 3
[unstable]
codegen-backend = true
# Enable more optimization in the release profile at the cost of compile time.
[profile.release]
# Compile the entire create as one unit.
# Slows compile times, marginal improvements.
codegen-units = 1
# Do a second optimization pass over the entire program, including dependencies.
# Slows compile times, marginal improvements.
lto = "thin"
# Optimize for size in the wasm-release profile to reduce load times and bandwidth usage on web.
[profile.wasm-release]
# Default to release profile values.
inherits = "release"
# Optimize with size in mind (also try "z", sometimes it is better).
# Slightly slows compile times, great improvements to file size and runtime performance.
opt-level = "s"
# Strip all debugging information from the binary to slightly reduce file size.
strip = "debuginfo"
[target.wasm32-unknown-unknown]
runner = "wasm-server-runner"