Products › lamco-dsi-tools › Docs › Building from source
Building from source
The feature sets, the static and the full build, and what each needs installed.
The release tarballs of lamco-dsi-tools (DSI: Desktop session interfaces) are built from the same repository you can clone. Building it yourself lets you choose the feature set or follow the main branch. This page lists the features, what each needs, and what the programs call and connect to once built.
From crates.io
cargo install lamco-dsi-tools --features portable
That builds and installs dsisee, dsido, dsitell and dsido-uinput from source, and needs Rust 1.89 or later. --features portable is every feature that links no system library; without it only the default feature is built, which leaves several commands out. --features full adds the PipeWire client, and then the build needs what the full set needs below. Two crates are published from the repository at each release's tag:
lamco-dsi-tools, the programs.lamco-dmabuf-read, the small helper thepipewirefeature uses to read a DMA-BUF. It's published again only when it changes, so its version can differ from the toolkit's.
Requirements
Building needs Rust 1.89 or later (edition 2024) and, for every feature set but full, nothing else.
git clone https://github.com/lamco-admin/lamco-dsi-tools.git
cd lamco-dsi-tools
cargo build --release --features portable # every command that links no system library
cargo build --release --features full # and the PipeWire client; needs libpipewire's development files
The programs are written to target/release/. A plain cargo build --release builds the default feature alone (eis), which leaves several commands out.
The repository is a Cargo workspace of two packages: The main one, and crates/lamco-dmabuf-read, the helper that maps a DMA-BUF. A cargo command run at the top with no -p and no --workspace builds the main package, which pulls the helper in only with the pipewire feature. cargo test -p lamco-dmabuf-read runs the helper's own tests, which need no system library.
Features
| Feature | Default | What it adds | What it brings in |
|---|---|---|---|
eis | yes | dsisee eis probe, dsisee eis observe, dsisee input capture, dsido eis inject, dsido input-capture enable | reis, ashpd |
capture | no | dsisee capture probe, dsisee capture observe, and the screen cast dissector of observe | wayland-protocols, wayland-protocols-wlr, tempfile, ashpd |
input | no | dsido wlr inject and dsisee input witness | wayland-protocols, wayland-protocols-wlr, wayland-protocols-misc, tempfile |
kernel | no | dsido kernel inject and the dsido-uinput helper | evdev |
clipboard | no | dsisee clipboard observe, dsido clipboard set, and the data-control dissectors of observe and clipboard routes. The portal route also needs eis | wayland-protocols, wayland-protocols-wlr |
outputs | no | dsido output set, and the wl_output, wlr-output-management and kde_output_device_v2 dissectors of dsisee output observe and observe | wayland-protocols, wayland-protocols-wlr, wayland-protocols-plasma, wayland-scanner and bitflags (the last two generate and carry the types of the two protocol definitions under protocols/) |
pipewire | no | The PipeWire client: It reads a screen cast's stream, for capture observe, capture probe and observe on GNOME and KDE, and it's what dsisee audio stream listens with and dsido audio play plays with. It turns on capture | pipewire (which links the system's libpipewire-0.3), and lamco-dmabuf-read, whose one dependency is rustix with its mm and fs features |
portable | no | Every feature that needs no system library: eis, capture, input, kernel, clipboard and outputs. The set for a static build that can be copied to any machine | |
full | no | Everything: portable and pipewire |
cargo build --release --features portable # everything that links no system library
cargo build --release --features full # and the PipeWire streams; needs libpipewire
cargo build --release --no-default-features # no libei connection, no capture protocol
The static and the full build
portable is everything that still builds as a static program, and full adds the one feature that can't, pipewire. No feature but pipewire links a system library, so every combination without it builds as a static program:
cargo build --release --features portable --target x86_64-unknown-linux-musl
A portable build opens the screen cast session and records each stream as not read, with the reason, which names the feature. Its dsisee audio stream and dsido audio play take their arguments and end as not available, with exit code 1 and a message that names the feature. Those two are the commands that are in a build whose feature is off. Every other command of a feature that's off is absent from the command line and from the help.
With no feature dsisee still has the portal, PipeWire, compositor, protocol, session, input routes, clipboard routes, output observe (the two D-Bus interfaces), audio observe, observe and check commands, and dsido has audio play alone, which ends as not available there. dsitell is the same in every build: It reads a capture taken by any build, whatever features its own was compiled with.
What the pipewire feature needs
The pipewire feature links libpipewire-0.3, which is a shared library, so a build with it is dynamically linked and runs only where that library is installed. Building it needs:
- The library's development files, which bring the SPA headers.
pkg-config.- libclang, because the bindings are generated from the headers at build time.
It has been built and its tests run against libpipewire 1.4.2. It doesn't build against libpipewire 0.3.65: The bindings name a constant that release doesn't have. The oldest release it builds against hasn't been found. A build against 1.4.2 has run with PipeWire 1.0.5, on Sway 1.9, and with 1.6.0, on KDE Plasma 6.8.2, both on 2026-11-27. Nothing older than 1.0.5 has been tried, so the oldest it runs with hasn't been found either. PipeWire 1.6.12 is the current upstream release and hasn't been tried. The tables of SPA identifiers in src/dissect/capture/spa_pod.rs were checked against the headers of PipeWire 1.4.2, and a test in the pipewire build compares the parameters the client sends with what libspa reads them as.
What it calls and connects to
Other programs, run when a command needs them. Each is optional: A program that isn't installed is reported as not available, which is different from one that ran and failed.
| Program | Used by | Package it usually comes in |
|---|---|---|
pw-dump | pipewire diagnose, audio observe, observe, check | PipeWire's tools |
pw-profiler | pipewire probe, audio observe, observe, check | PipeWire's tools. It has to have the -J option; PipeWire 1.0.5 doesn't, and is reported as not available |
gnome-shell, kwin_wayland, swaymsg, sway, hyprctl, Hyprland, niri, wayfire, cosmic-comp, labwc | wayland diagnose, eis diagnose, observe, check: The version of whichever compositor is running | The compositor itself |
pkg-config | eis diagnose, observe, check: The libei development package version | pkg-config, with libei's development files |
dsido kernel inject starts the helper dsido-uinput, and with --elevate-with <program> that program. dsitell calls no program and connects to nothing.
Interfaces dsisee and dsido connect to directly:
- The D-Bus session bus: The portal, bus name ownership, and the display configuration of GNOME and KDE, each called only when its name has an owner. On GNOME
dsido output setcallsApplyMonitorsConfigoforg.gnome.Mutter.DisplayConfig. - The session bus name
org.freedesktop.ScreenSaver: TheInhibitandUnInhibitofdsido session inhibit, and nothing else. - The D-Bus system bus: systemd-logind, for the sessions
session logindlists, the display session every command that records for a window follows, and theInhibitcall ofdsido session inhibit. - libei through the RemoteDesktop portal's
ConnectToEIS, the InputCapture portal, and the portal's Clipboard interface. - The kernel's
/dev/uinput, by the helper only. - The Wayland display, whose registry it reads itself, and on which
dsido wlr injectcreates virtual devices,dsisee input witnessa window, the clipboard commands a data-control device and source, anddsido output setan output configuration. The portal route of the capture commands, asked for a virtual monitor, opens a second connection that binds eachwl_outputand listens. A command that records for a window opens one more, which bindszwlr_output_power_manager_v1where it's advertised and listens; it never sets an output's power. - In a build with the
pipewirefeature, PipeWire: The connection the ScreenCast portal hands out, on which it reads a screen cast's stream, and the session's own daemon, on whichdsisee audio streammakes a capture stream on a sink's monitor anddsido audio playa playback stream.
The DMA-BUF helper crate
crates/lamco-dmabuf-read maps a DMA-BUF read-only and copies rows out of it, for reading a screen marker from a screen cast's buffer. It's the one place in the repository with unsafe code. The main package forbids it, and a test fails if the keyword appears anywhere else. The helper is in a build with the pipewire feature only.
Man pages and completions
The repository holds a man page for each program and each of its commands under doc/man/, and completions for bash, zsh and fish under completions/, generated from the command definitions and held to them by a test. The release tarballs carry both.