[package] name = "punktfunk-client-session" description = "punktfunk/1 Vulkan session binary — SDL3 window, ash presenter, terminal stats; the power-user / gamescope stream client" version.workspace = true edition.workspace = true rust-version.workspace = true license.workspace = true authors.workspace = true repository.workspace = true [[bin]] name = "punktfunk-session" path = "src/main.rs" [features] default = ["ui", "pyrowave"] # PyroWave client decode (the wired-LAN wavelet codec) — enables the decode backend + the # planar present path. ON by default; each session still opts in explicitly (the Settings # codec pick, or PUNKTFUNK_PREFER_PYROWAVE=1). The Windows ARM64 leg builds # --no-default-features and so skips it (video decode is Linux-only anyway). pyrowave = ["pf-client-core/pyrowave", "pf-presenter/pyrowave"] # The Skia console UI (stats OSD, capture HUD, later the gamepad library). Dropping it # (`--no-default-features`) is the ~15 MB-smaller power-user build: same streaming, # stats on stdout only. ui = ["dep:pf-console-ui", "dep:serde_json"] # Same Linux+Windows gating as the rest of the client stack; elsewhere this is a stub # binary. [target.'cfg(any(target_os = "linux", windows))'.dependencies] # `default-features = false` on both: THIS crate's `pyrowave` feature (above) is the single # switch that turns the wavelet codec on, and it enables it explicitly on each. Inheriting their # defaults instead would make `--no-default-features` a lie — the Windows ARM64 leg builds that # way precisely to skip the vendored PyroWave C++, which has no ARM64 SIMD path. pf-presenter = { path = "../../crates/pf-presenter", default-features = false } pf-console-ui = { path = "../../crates/pf-console-ui", optional = true } pf-client-core = { path = "../../crates/pf-client-core", default-features = false } punktfunk-core = { path = "../../crates/punktfunk-core", features = ["quic"] } # The fake-library dev hook (`PUNKTFUNK_FAKE_LIBRARY`, browse mode) parses GameEntry JSON. serde_json = { version = "1", optional = true } anyhow = "1" tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] } # The GTK4/libadwaita session shell (app.rs, cli.rs, ui_*.rs, shortcuts.rs, spawn.rs). Those # modules are `#[cfg(target_os = "linux")]` in main.rs, so their dependencies belong in a # linux-only block — the Windows leg of this crate is a stub binary and must not pull GTK. # # Versions and features track clients/linux verbatim (gtk4 0.11 "v4_16", libadwaita 0.9 "v1_5"): # the two crates compile the same widget vocabulary, and a version skew between them would show up # as type mismatches through relm4 rather than as anything legible. # # glib / gio / gdk / pango are NOT listed on purpose — the sources reach them as `gtk::glib`, # `gtk::gio`, `gtk::gdk` and `gtk::pango`, gtk4's own re-exports. Declaring them separately would # risk resolving a DIFFERENT version of the same sys crate than the one gtk4 links against. [target.'cfg(target_os = "linux")'.dependencies] gtk = { package = "gtk4", version = "0.11", features = ["v4_16"] } adw = { package = "libadwaita", version = "0.9", features = ["v1_5"] } relm4 = { version = "0.11", features = ["libadwaita"] } async-channel = "2" # NOT optional here, unlike the shared block above where it hangs off `ui`. cli.rs's `--json` host # listing is a CLI feature, not a console-UI one, so on Linux it is needed whether or not `ui` is # on — and `--no-default-features` is a documented Linux build ("same streaming, stats on stdout # only"), which without this simply did not compile. serde_json = "1" # Embeds the app icon as an exe resource (build.rs) — Windows hosts only (rc.exe from # the SDK); same pattern as clients/windows. [target.'cfg(windows)'.build-dependencies] winresource = "0.1" # Compiles data/ (the OS-mark symbolic icons) into the embedded gresource (build.rs) — # needs `glib-compile-resources`, which ships with the GTK dev stack this crate needs anyway. [target.'cfg(target_os = "linux")'.build-dependencies] glib-build-tools = "0.22" [lints] workspace = true