[package] name = "wzp-client" version.workspace = true edition.workspace = true license.workspace = true rust-version.workspace = true description = "WarzonePhone client library — for Android (JNI) and Windows desktop" [dependencies] wzp-proto = { workspace = true } wzp-codec = { workspace = true } wzp-fec = { workspace = true } wzp-crypto = { workspace = true } wzp-transport = { workspace = true } tokio = { workspace = true } tracing = { workspace = true } tracing-subscriber = { workspace = true } async-trait = { workspace = true } bytes = { workspace = true } anyhow = "1" serde = { workspace = true } serde_json = "1" chrono = "0.4" rustls = { version = "0.23", default-features = false, features = ["ring", "std"] } cpal = { version = "0.15", optional = true } libc = "0.2" # coreaudio-rs is Apple-framework-only; gate it to macOS so enabling # the `vpio` feature from a non-macOS target builds cleanly instead of # pulling in a crate that can only link against Apple frameworks. [target.'cfg(target_os = "macos")'.dependencies] coreaudio-rs = { version = "0.11", optional = true } [features] default = [] audio = ["cpal"] # vpio enables coreaudio-rs but that dep is itself gated to macOS above, # so enabling this feature on Windows/Linux is a no-op (the audio_vpio # module is also #[cfg(target_os = "macos")] in lib.rs). vpio = ["dep:coreaudio-rs"] [[bin]] name = "wzp-client" path = "src/cli.rs" [[bin]] name = "wzp-bench" path = "src/bench_cli.rs" [dev-dependencies] tokio = { workspace = true } wzp-relay = { path = "../wzp-relay" } wzp-crypto = { workspace = true } wzp-proto = { workspace = true } async-trait = { workspace = true }