[package]
name = "xtask"
version = "0.1.0"
edition = "2021"
publish = false

[[bin]]
name = "validate-levels"
path = "src/validate_levels.rs"
required-features = ["validate-levels"]

[[bin]]
name = "clean-target"
path = "src/clean_target.rs"

[[bin]]
name = "package-project"
path = "src/package_project.rs"
required-features = ["validate-levels"]

[[bin]]
name = "bake-navigation"
path = "src/bake_navigation.rs"
required-features = ["validate-levels"]

[[bin]]
name = "upgrade-project"
path = "src/upgrade_project.rs"
required-features = ["validate-levels"]

[dependencies]
walkdir = "2.5"
scene = { path = "../crates/scene", optional = true }
shared = { path = "../crates/shared", optional = true }
settings = { workspace = true, optional = true }
serde_json = "1"
serde = { version = "1", features = ["derive"] }
ron = "0.8"
blake3 = "1"

[target.'cfg(unix)'.dependencies]
libc = "0.2"

[features]
default = []
validate-levels = ["dep:scene", "dep:settings", "dep:shared"]
