[package] name = "solitaire_web" version.workspace = true license.workspace = true edition.workspace = true [lib] crate-type = ["cdylib", "rlib"] [dependencies] solitaire_engine = { path = "../solitaire_engine" } solitaire_data = { path = "../solitaire_data" } # Direct dep so `bevy::` resolves in lib.rs; zero extra features so this # contributes nothing to unification with the desktop/Android feature set. bevy = { workspace = true } wasm-bindgen = "0.2" getrandom = { version = "0.3", features = ["wasm_js"] } console_error_panic_hook = "0.1" # webgl2 must only be enabled for the wasm target — it constrains the # renderer to WebGL2 compatibility limits, which is wrong for native builds. [target.'cfg(target_arch = "wasm32")'.dependencies] bevy = { workspace = true, features = ["webgl2"] }