YrXtals/web/Cargo.toml

54 lines
1.0 KiB
TOML

[package]
name = "yr_crystals_web"
version = "0.1.0"
edition = "2021"
publish = false
[lib]
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "yrxtls-serve"
path = "src/server.rs"
[dependencies]
log = "0.4"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wgpu = "27"
bytemuck = { version = "1", features = ["derive"] }
num-complex = "0.4"
rustfft = "6"
raw-window-handle = "0.6"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
"Document",
"Element",
"HtmlCanvasElement",
"Navigator",
"Window",
"Performance",
"console",
"AudioContext",
"AudioContextOptions",
"AudioBuffer",
"AudioBufferSourceNode",
"AudioDestinationNode",
"AudioNode",
"AnalyserNode",
"MediaElementAudioSourceNode",
"HtmlAudioElement",
"GpuCanvasContext",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tiny_http = "0.12"
env_logger = "0.11"