[package]
name = "app"
version = "0.1.0"
edition.workspace = true

[features]
default = ["desktop"]
desktop = []  # macOS only
ios = []
headless = []

[dependencies]
libmarathon = { path = "../libmarathon" }
macros = { path = "../macros" }
inventory.workspace = true
rkyv.workspace = true
bevy = { version = "0.17.2", default-features = false, features = [
    # bevy_render, bevy_core_pipeline, bevy_pbr are now vendored in libmarathon
    "bevy_ui",
    "bevy_text",
    "png",
] }
egui.workspace = true
glam.workspace = true
winit.workspace = true
raw-window-handle = "0.6"
uuid.workspace = true
anyhow.workspace = true
tokio.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
tracing-appender.workspace = true
serde.workspace = true
rand.workspace = true
iroh = { workspace = true, features = ["discovery-local-network"] }
iroh-gossip.workspace = true
futures-lite.workspace = true
bytes.workspace = true
crossbeam-channel.workspace = true
clap.workspace = true

[target.'cfg(target_os = "ios")'.dependencies]
objc = "0.2"
raw-window-handle = "0.6"
tracing-oslog.workspace = true

[dev-dependencies]
iroh = { workspace = true, features = ["discovery-local-network"] }
iroh-gossip.workspace = true
tempfile.workspace = true
futures-lite.workspace = true
rkyv.workspace = true
bytes.workspace = true

[lib]
name = "app"
crate-type = ["staticlib", "cdylib", "lib"]
