[package]
name = "live_kit_client"
version = "0.1.0"
edition = "2021"
description = "Bindings to LiveKit Swift client SDK"
publish = false
license = "GPL-3.0-or-later"

[lib]
path = "src/live_kit_client.rs"
doctest = false

[[example]]
name = "test_app"

[features]
test-support = [
    "async-trait",
    "collections/test-support",
    "gpui/test-support",
    "live_kit_server",
    "nanoid",
]

[dependencies]
anyhow.workspace = true
async-broadcast = "0.4"
async-trait = { workspace = true, optional = true }
collections = { workspace = true, optional = true }
futures.workspace = true
gpui = { workspace = true, optional = true }
live_kit_server = { workspace = true, optional = true }
log.workspace = true
media.workspace = true
nanoid = { version ="0.4", optional = true}
parking_lot.workspace = true
postage.workspace = true

[target.'cfg(target_os = "macos")'.dependencies]
core-foundation.workspace = true

[target.'cfg(all(not(target_os = "macos")))'.dependencies]
async-trait = { workspace = true }
collections = { workspace = true }
gpui = { workspace = true }
live_kit_server.workspace = true
nanoid = "0.4"

[dev-dependencies]
anyhow.workspace = true
async-trait.workspace = true
collections = { workspace = true, features = ["test-support"] }
futures.workspace = true
gpui = { workspace = true, features = ["test-support"] }
live_kit_server.workspace = true
media.workspace = true
nanoid = "0.4"
parking_lot.workspace = true
sha2.workspace = true
simplelog = "0.9"

[target.'cfg(target_os = "macos")'.dev-dependencies]
core-foundation.workspace = true

[build-dependencies]
serde.workspace = true
serde_json.workspace = true

[package.metadata.cargo-machete]
ignored = ["serde_json"]
