Files
enricobuehler ad5f769d4a
apple / gate (pull_request) Successful in 8s
android / gate (pull_request) Successful in 8s
apple / swift (pull_request) Skipped
apple / distribute (pull_request) Skipped
apple / screenshots (pull_request) Skipped
android / android (pull_request) Skipped
ci / changes (pull_request) Successful in 13s
nix / gate (pull_request) Successful in 6s
ci / decky-typecheck (pull_request) Skipped
nix / flake (pull_request) Skipped
ci / bun-nix (pull_request) Successful in 19s
secret-scan / gitleaks (pull_request) Successful in 20s
ci / docs-drift (pull_request) Successful in 30s
windows-client / gate (pull_request) Successful in 7s
windows-client / client (arm64, --no-default-features, aarch64-pc-windows-msvc, C:\t-a64) (pull_request) Skipped
windows-client / client (x64, , x86_64-pc-windows-msvc, C:\t) (pull_request) Skipped
windows-drivers / gate (pull_request) Successful in 7s
windows-drivers / probe-and-proto (pull_request) Skipped
windows-drivers / driver-build (pull_request) Skipped
ci / web (pull_request) Successful in 47s
ci / rust-arm64 (pull_request) Successful in 1m45s
ci / docs-site (pull_request) Successful in 46s
ci / sdk-plugin-kit (pull_request) Successful in 30s
setup-binary / build (aarch64) (pull_request) Successful in 3m57s
setup-binary / build (x86_64) (pull_request) Successful in 5m37s
setup-binary / probe the published channel (pull_request) Skipped
setup-binary / publish to the generic registry (pull_request) Skipped
macos-host / check (pull_request) Successful in 1m2s
windows-host / pr-lint (pull_request) Successful in 5m19s
windows-host / package (arm64, 89841f5a57f2348b67ec0839b718f4bf4ea7d07c371c9ba4b77b6c790f918953, bun-windows-aarch64.zip, , --no-default-features --features gamestream, _arm64, aarch64-pc-windows-msvc, C:\t-a64) (pull_request) Skipped
windows-host / package (x64, 0a0620930b6675d7ba440e81f4e0e00d3cfbe096c4b140d3fff02205e9e18922, bun-windows-x64.zip, --features nvenc,qsv, --features nvenc,qsv, , x86_64-pc-windows-msvc, C:\t) (pull_request) Skipped
windows-host / canary-manifest (pull_request) Skipped
windows-host / winget-source (pull_request) Skipped
ci / rust (pull_request) Successful in 8m43s
chore(release): cut 0.38.0
The notes, the Play text and the compat card come from the 95 commits
since v0.37.0. Picture fit and controller mouse move the C ABI to 32,
additive, so this ships as a minor release rather than a patch.

Wire stays 2 and the driver protocol stays 9, so a 0.37.0 driver serves
this host. Windows turns Disable monitor devices (PnP) on for every host.
2026-09-15 01:03:27 +02:00

135 lines
6.5 KiB
TOML

[workspace]
resolver = "2"
members = [
"crates/punktfunk-core",
"crates/punktfunk-host",
"crates/punktfunk-host/vendor/usbip-sim",
# The capability-carrying PyroWave encode worker. A SEPARATE binary by design — never a
# hardlink of, or a subcommand of, punktfunk-host (design/gpu-priority-capability-worker.md).
"crates/punktfunk-encode-worker",
"crates/punktfunk-tray",
"crates/punktfunk-setup",
# The Windows installer wizard (WinUI 3 over the same engine). Stub bin off-Windows;
# shares clients/windows' windows-reactor pin, bumped together.
"crates/punktfunk-setup-win",
"crates/pf-bitstream",
"crates/pf-bitstream/vendor/cros-codecs",
"crates/pf-client-core",
"crates/pf-clipboard",
"crates/pf-presenter",
"crates/pf-console-ui",
"crates/pf-driver-proto",
"crates/pf-paths",
"crates/pf-paths-win",
"crates/pf-update",
"crates/pf-update-check",
"crates/pf-host-config",
"crates/pf-gpu",
"crates/pf-zerocopy",
"crates/pf-frame",
"crates/pf-win-display",
"crates/pf-encode",
"crates/pf-encode-win",
"crates/pf-capture",
"crates/pf-inject",
"crates/pf-vdisplay",
"crates/pf-vkdecode",
"crates/pf-dxvadec",
"crates/pf-libva",
"crates/pf-vaapi",
"crates/pyrowave-sys",
"crates/libvpl-sys",
"clients/probe",
"clients/cli",
"clients/linux",
"clients/session",
"clients/windows",
"clients/android/native",
"tools/cursor-probe",
"tools/display-disturb",
"tools/fence-ring-spike",
"tools/latency-probe",
"tools/loss-harness",
]
# Standalone PoC (built on its own; pulls usbip/tokio/libusb we don't want in the workspace).
# The vendored `ndk` is a [patch.crates-io] source, not a member: it only compiles for the
# `*-linux-android` targets, so workspace membership would break host `cargo build --workspace`.
exclude = [
"packaging/linux/steam-deck-gadget/usbip-poc",
"clients/android/native/vendor/ndk",
# Bring-your-own-hardware measurement tools. `hid-descriptor-dump` pulls `hidapi`, a C library
# wanting libudev on Linux; `win-input-matrix` is Windows-only and asks the live input stacks
# what they can see. Neither belongs in `cargo build --workspace` or on a CI leg with no pad.
"tools/hid-descriptor-dump",
"tools/win-input-matrix",
]
# ndk 0.9.0 with a small maintained patch set: public `MediaCodec::as_ptr` for the missing
# frame-rendered binding, two warning fixes, and panic-free destructors for fallible NDK cleanup.
# The pointer patch can disappear when upstream exposes the callback; destructor failures remain
# non-actionable in `Drop` and must never unwind through a JNI or codec callback boundary.
[patch.crates-io]
ndk = { path = "clients/android/native/vendor/ndk" }
[workspace.package]
version = "0.38.0"
edition = "2024"
rust-version = "1.85"
license = "MIT OR Apache-2.0"
authors = ["unom"]
repository = "https://git.unom.io/unom/punktfunk"
# The `unsafe` discipline the `packaging/windows/drivers/*` crates already run, extended to the
# workspace. `unsafe fn` marks a CONTRACT the caller must uphold; it is not a licence for the whole
# body to skip checking. Without this lint an `unsafe fn` body is unchecked end to end, so a 600-line
# function hides which handful of lines are actually the unsafe ones — exactly the reviewer-hostile
# shape we are working down. (This is the Rust 2024 default; adopting it early also pays off the
# edition migration.)
#
# `deny`, not `warn`. `warn` was never actually a softer setting: CI runs `cargo clippy … -D
# warnings`, which promotes it to a hard error anyway — that is how adopting this lint turned main
# red on every platform for a day without the level in this file ever saying `deny`. A level that
# lies about its own severity is worse than a strict one, so this now states what CI already does,
# and the exemptions are written down per file instead of hiding in a 689-warning wall nobody reads.
#
# THE EXEMPTIONS. Nine GPU/FFI backend files carry `#![allow(unsafe_op_in_unsafe_fn)]` with a
# one-line reason each. They are not "not done yet" — they are where this lint stops paying:
# their bodies are ash/CUDA/AMF/libav calls almost line for line (measured: 64% of the sites are a
# single third-party FFI call, and of the 44 `unsafe fn`s in them only 4 have a body containing no
# unsafe operation at all). Narrowing them means one `unsafe {}` per line plus, since pf-encode also
# denies `clippy::undocumented_unsafe_blocks`, one hand-written SAFETY comment per line that could
# only ever restate "an ash call on a live device" — the precise noise that made `unsafe` stop
# meaning anything here before (see the header of `pf-win-display/src/win_display.rs`).
#
# Everything else in the workspace is at zero and enforced. Removing one of those allows, file by
# file, is real work with a real payoff; blanket-narrowing all nine is not. Prefer DELETING an
# `unsafe fn` marker over wrapping its body: keep the marker only where a caller can actually break
# something (a raw pointer, a borrowed HANDLE, a GPU object that must not be in flight).
[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "deny"
# The companion lint: every `unsafe {}` / `unsafe impl` carries a `// SAFETY:` proof. Hoisted here
# from ~85 per-file `#![deny(...)]` attributes so a NEW crate (or a new module in an old one) is
# covered on creation rather than on remembering — the per-file form left pf-vkhdr-layer,
# wdk-probe, and half of pf-clipboard uncovered for months. NOTE: this table reaches only crates
# with `[lints] workspace = true`; `packaging/windows/drivers` and `packaging/windows/pf-vkhdr-layer`
# are SEPARATE workspaces and restate it (any "workspace-wide" claim must be made three times or it
# is false). Of the members, only the two vendored snapshots (pf-bitstream/vendor/cros-codecs,
# punktfunk-host/vendor/usbip-sim) stay out, deliberately — upstream code stays pristine.
[workspace.lints.clippy]
undocumented_unsafe_blocks = "deny"
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
# NOTE: deliberately NOT `panic = "abort"`. punktfunk-core ships as a cdylib/staticlib into
# third-party apps (Swift/Kotlin/C) and its C ABI catches panics at the boundary
# (`catch_unwind` → `PunktfunkStatus::Panic`). `panic = "abort"` would make that guard a
# no-op and let a stray panic abort the embedding application. Unwinding keeps the
# documented isolation guarantee real.
# The per-frame hot path must stay fast even in dev builds.
[profile.dev.package."*"]
opt-level = 2