# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.92"
name = "nightshade-editor"
version = "0.38.0"
authors = ["Matthew Berger <matthewjordanberger@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Interactive map editor for the Nightshade game engine"
homepage = "https://github.com/matthewjberger/nightshade"
readme = false
keywords = [
    "gamedev",
    "engine",
    "editor",
    "ecs",
    "wgpu",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/matthewjberger/nightshade"
resolver = "2"

[features]
agent = [
    "dep:nightshade",
    "dep:enum2schema",
    "dep:tokio",
    "dep:tokio-tungstenite",
    "dep:futures-util",
    "dep:serde",
    "dep:serde_json",
]
default = ["agent"]

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

[dependencies.dirs]
version = "6"

[dependencies.enum2schema]
version = "0.1"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.nightshade]
version = "0.38"
features = ["editor-protocol-agent"]
optional = true

[dependencies.rust-embed]
version = "8"
features = ["interpolate-folder-path"]

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.tiny_http]
version = "0.12"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "net",
    "sync",
    "time",
    "process",
    "io-util",
]
optional = true

[dependencies.tokio-tungstenite]
version = "0.24"
optional = true

[dependencies.winit]
version = "0.30"

[dependencies.wry]
version = "0.55"

[build-dependencies.flate2]
version = "1"

[build-dependencies.sha2]
version = "0.10"

[build-dependencies.tar]
version = "0.4"

[build-dependencies.ureq]
version = "3"
