26 lines
589 B
TOML
26 lines
589 B
TOML
[package]
|
|
name = "singularity-rs"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
name = "singularity_rs"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
bevy = "0.19"
|
|
bevy_egui = "0.41"
|
|
|
|
# Web-only deps for WebGPU detection + fallback message.
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
web-sys = { version = "0.3", features = ["Gpu", "Navigator", "Window", "Document", "HtmlElement", "Element"] }
|
|
wasm-bindgen = "0.2"
|
|
js-sys = "0.3"
|
|
|
|
# Smaller wasm binary in release web builds (per Bevy examples README).
|
|
[profile.wasm-release]
|
|
inherits = "release"
|
|
opt-level = "z"
|
|
lto = "fat"
|
|
codegen-units = 1
|