[package]
name = "crepuscularity-cli"
version = "0.4.0"
edition = "2021"
license = "MPL-2.0"
description = "crepus CLI — scaffolding and builds for Crepuscularity (UNSTABLE; in active development)."
repository = "https://github.com/semitechnological/crepuscularity"
readme = "../../README.md"

[[bin]]
name = "crepus"
path = "src/main.rs"

[[test]]
name = "web_cli"
path = "tests/web_cli.rs"

[features]
# Desktop (GPUI) commands: `crepus new`, `crepus dev`, `crepus preview`.
# Enabled by default. Disable for cross-compilation to platforms where GPUI
# (and its DirectX/Metal shaders) cannot be compiled.
default = ["desktop"]
desktop = ["dep:gpui", "dep:crepuscularity-runtime"]

[dependencies]
gpui                   = { version = "=0.2.2", default-features = false, features = ["font-kit"], optional = true }
crepuscularity-core    = { path = "../crepuscularity-core", version = "0.3.0" }
crepuscularity-runtime = { path = "../crepuscularity-runtime", version = "0.3.0", optional = true }
crepuscularity-web     = { path = "../crepuscularity-web", version = "0.3.0" }
crepuscularity-webext  = { path = "../crepuscularity-webext", version = "0.1.1" }
notify                 = { workspace = true }
walkdir                = { workspace = true }
serde                  = { workspace = true }
serde_json             = { workspace = true }
toml                   = { workspace = true }
console                = { workspace = true }
indicatif              = { workspace = true }
tracing                = { workspace = true }
tracing-subscriber     = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }
