-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
27 lines (21 loc) · 820 Bytes
/
Cargo.toml
File metadata and controls
27 lines (21 loc) · 820 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
[package]
name = "gamejam_2"
version = "0.1.0"
edition = "2024"
[dependencies]
bevy = { version = "0.16", features = ["vorbis", "mp3", "flac", "wav"] }
rand = "0.8" # Fixierte Version statt "*"
serde = "1.0.228"
getrandom = { version = "0.3", features = ["wasm_js"] } # GEÄNDERT: js -> wasm_js
futures-lite = "2.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
reqwest = { version = "0.12", default-features = false, features = ["json"] }
wasm-bindgen-futures = "0.4"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
tokio = { version = "1", features = ["rt", "rt-multi-thread"] }
[profile.wasm-release]
inherits = "release"
opt-level = 'z'
lto = "fat" # Aggressive LTO für WASM
codegen-units = 1