[package]
name = "nightshade-editor"
version.workspace = true
authors.workspace = true
description = "An interactive editor for the Nightshade game engine"
readme = "README.md"
homepage.workspace = true
repository.workspace = true
keywords = ["gamedev", "engine", "editor", "ecs", "wgpu"]
license.workspace = true
edition.workspace = true
rust-version.workspace = true
exclude = ["screenshot.png"]

[[bin]]
name = "nightshade-editor"
path = "src/main.rs"

[dependencies]
nightshade = { workspace = true, features = ["tracing", "editor-plugin-host", "scripting"] }
tracing = { workspace = true }
winit.workspace = true
egui_tiles = "0.14"
strum = { version = "0.27", features = ["derive"] }
enum2str = "0.1.18"
serde_json = { workspace = true }
serde = { workspace = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
rfd = "0.15"
wasmtime = "27.0"
wasmtime-wasi = "27.0"
anyhow = "1.0"
egui-toast = "0.19.1"
dirs = "5.0"
bincode = "1.3"
syntect = { version = "5.3", default-features = false, features = ["default-fancy"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-sys = { version = "0.3", features = ["Blob", "BlobPropertyBag", "Document", "Element", "HtmlAnchorElement", "HtmlInputElement", "FileList", "File", "FileReader", "Url", "Window"] }
js-sys = "0.3"
