Skip to content

feat: make PulseAudio optional for static Linux builds - #99

Merged
DarrenBaldwin07 merged 2 commits into
mainfrom
tembo/optional-pulseaudio
Nov 14, 2026
Merged

DarrenBaldwin07 merged 2 commits into
mainfrom
tembo/optional-pulseaudio

Conversation

@DarrenBaldwin07

@DarrenBaldwin07 DarrenBaldwin07 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

what

  • Adds a pulseaudio cargo feature, on by default. Turning it off leaves out desktop audio on Linux, the only code that links libpulse-simple. With it off, --audio-enabled is ignored and the viewer hides audio.
  • Drops x11rb's allow-unsafe-code feature. It only compiles in x11rb's libxcb bindings (xcb_ffi), which voxl never uses because it connects with RustConnection. The bindings still made every voxl binary link libxcb.so.1.
  • CI runs clippy with --no-default-features too, so the no-PulseAudio build keeps compiling.

why

  • PulseAudio only ships as a shared library. So a Linux voxl can't be linked statically (musl), and every Linux binary that includes it needs libpulse-simple.so.0 at runtime, even with --audio-enabled=false.
  • Builds that don't need desktop audio can now leave it out. Examples: a static binary that runs on any distribution, or a program that embeds voxl only to share a screen.
  • With both changes, --no-default-features on Linux links only x264, libyuv and Opus (plus libc), and all three can be linked statically. Default builds behave as before.

notes

  • The microphone path needs no change: it writes to a FIFO and doesn't link PulseAudio.

Want tembo to make any changes? Add a comment with @tembo and i'll get back to work!

View on Tembo  Review in Tembo  View Agent Settings

Co-authored-by: Darren <68653294+DarrenBaldwin07@users.noreply.github.com>
@tembo tembo Bot added tembo Pull request created by Tembo labels Nov 10, 2026
@DarrenBaldwin07
DarrenBaldwin07 merged commit 93ad2d4 into main Nov 14, 2026
10 checks passed
eliahilse added a commit to kyora-sh/starfold that referenced this pull request Nov 19, 2026
…and ports (#78)

Only `.github/upstream-skip` changes (+7 −2). Two `held:` lines become plain entries, and five entries are added. No `held:` line is left.

| upstream commit | entry |
|---|---|
| 291bc1b | not ported: upstream's rule reconfigures x264 on about a third of the frames of a window drag (measured) |
| b00f3b8 | until --base-path and the unix listener settle; revisit |
| 2ea4f8f | hand port queued (conflicts with our client/build) |
| e2acdb1 | hand port queued (conflicts with our client/build) |
| b70f56e | hand port queued (conflicts with our client/build) |
| c0ea9f4 | release version bump (0.3.5); versions here are set independently |
| 93ad2d4 | hand port queued (conflicts with our client/build) |

## Owed hand ports

1. tembo/voxl#99
2. tembo/voxl#96
3. tembo/voxl#83 and tembo/voxl#103

## Recorded runs

`.github/scripts/upstream-sync.sh`, run on a VM. Each run had its own new bare origin with this branch as `main`.

**At 2f431a8**, the first commit (#79, #94 and #104 entries only): three runs, `SYNC_MAX_COMMITS` 1, 2 and 3.
- Each printed `status=pushed`.
- Each printed "**Stopped at 2ea4f8f feat(web): pinch to zoom on touch devices (tembo/voxl#96)**: conflicts in packages/web/src/client/main.ts, packages/web/src/client/touch.ts."

**At 7abbbe4** (the same entries; only 291bc1b's reason text differs at 4512748): two runs, `SYNC_MAX_COMMITS` 1 and 999. Each printed:
- `status=pushed`, exit 0;
- "Applied (1)": 1b41123 (tembo/voxl#107);
- "Ported (1)": 3051e8a;
- "Skipped (10)": 291bc1b, 176f8be, b963394, 3eda628, b00f3b8, 2ea4f8f, e2acdb1, b70f56e, c0ea9f4, 93ad2d4;
- no stop;
- `.github/upstream-sha` on `sync/upstream`: 1b411238124781a6080641a89805f62ea1ecb29b.

The workflow's shell steps were run on a VM with their text unchanged; the checkout, cache and toolchain actions were not run; PR CI run 44321131177 ran the whole job.

## CI

PR CI run 44321131177 at 7abbbe4: conclusion success. Every job succeeded, except macOS, which was skipped.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: GPT 6.2 Sol <codex@openai.com>

🤖 Generated with [Claude Code](https://claude.com/claude-code)
DarrenBaldwin07 added a commit that referenced this pull request Nov 19, 2026
## What

Bumps voxl from 0.3.5 to 0.4.0 in `Cargo.toml`, `Cargo.lock` and
`default.nix`. Once this merges, pushing the `v0.4.0` tag on the merge
commit publishes the crate to crates.io and creates the GitHub release,
with generated notes and the crate attached (`release.yml`).

Changes since the `v0.3.5` tag:

- perf: build x264 with patches that skip unchanged macroblocks (#116)
- feat(web): add a trackpad mode for touch screens (#115)
- build: declare rust-version 1.86, the Rust the Linux CI job builds
with (#107)

The `v0.3.5` tag points at #99 (the optional `pulseaudio` feature), so
that change is already in 0.3.5 and isn't repeated here.

## Testing

- `cargo metadata --locked` passes, so `Cargo.lock` matches
`Cargo.toml`.
 
  


 <br /> 


> Want tembo to make any changes? Add a comment with `@tembo` and i'll
get back to work!


<a
href="https://app.tembo.io/sessions/75ad8969-8072-458a-973b-b4f3cec3bbac"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://internal.tembo.io/static/view/tembo-dark.png?v=3"><source
media="(prefers-color-scheme: light)"
srcset="https://internal.tembo.io/static/view/tembo-light.png?v=3"><img
alt="View on Tembo"
src="https://internal.tembo.io/static/view/tembo-light.png?v=3"
width="134" height="28"></picture></a>&nbsp;&nbsp;<a
href="https://app.tembo.io/reviews/redirect?sessionId=75ad8969-8072-458a-973b-b4f3cec3bbac"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://internal.tembo.io/public/tembo-button/review?theme=dark&v=3"><source
media="(prefers-color-scheme: light)"
srcset="https://internal.tembo.io/public/tembo-button/review?theme=light&v=3"><img
alt="Review in Tembo"
src="https://internal.tembo.io/public/tembo-button/review?theme=light&v=3"
width="145" height="28"></picture></a>&nbsp;&nbsp;<a
href="https://app.tembo.io/settings/models"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://internal.tembo.io/public/agent-button/claudeCode:claude-opus-5-5:xhigh?theme=dark&v=12"><source
media="(prefers-color-scheme: light)"
srcset="https://internal.tembo.io/public/agent-button/claudeCode:claude-opus-5-5:xhigh?theme=light&v=12"><img
alt="View Agent Settings"
src="https://internal.tembo.io/public/agent-button/claudeCode:claude-opus-5-5:xhigh?theme=light&v=12"
height="28"></picture></a>&nbsp;&nbsp;<a
href="https://tembo-io.slack.com/archives/C08S9PXF1KJ/p1795122498696389"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://internal.tembo.io/public/vendor-button/slack?theme=dark&v=2"><source
media="(prefers-color-scheme: light)"
srcset="https://internal.tembo.io/public/vendor-button/slack?theme=light&v=2"><img
alt="View on slack"
src="https://internal.tembo.io/public/vendor-button/slack?theme=light&v=2"
height="28"></picture></a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tembo Pull request created by Tembo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant