This commit is contained in:
Lauri Räsänen 2023-01-27 23:16:57 +02:00
parent a7ea7ee65b
commit dc3bd2a433
6 changed files with 119 additions and 8 deletions

View file

@ -3,7 +3,12 @@ name = "wgpu-renderer"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "wgpu-renderer"
path = "src/main.rs"
[dependencies]
winit = "0.27.5"
@ -20,6 +25,19 @@ gltf = "1.0.0"
wgpu-types = "0.14.1"
regex = "1.7.1"
rust-embed = "6.4.2"
cfg-if = "1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.6"
console_log = "0.2.0"
wgpu = { version = "0.14", features = ["webgl"]}
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4.30"
web-sys = { version = "0.3", features = [
"Document",
"Window",
"Element",
]}
[build-dependencies]
anyhow = "1.0.68"