Skip to content

Building from Source

ilyamiro edited this page Nov 2, 2026 · 1 revision

Requirements

  • Rust 1.85 or newer, with Cargo
  • On Linux: the development files of Wayland, xkbcommon, X11 (Xcursor, Xi, Xrandr) and OpenGL/EGL, or the Nix shell of the repository

Build

git clone https://github.com/ilyamiro/Ski && cd Ski
cargo build --release
./target/release/ski

With Nix, run Cargo inside the repository's shell, which provides the libraries:

nix-shell --run 'cargo build --release'
nix-shell --run './target/release/ski'

A binary built outside the Nix shell on NixOS fails with NoWaylandLib, because it cannot find the libraries.

A clean release build takes about 5 minutes; an incremental one 1 to 2 minutes.

Tests

cargo test --locked                  # or: nix-shell --run 'cargo test --locked'
cargo test rename_trash_restore_delete   # one test by name

Ski is a binary crate only, so cargo test --lib does not apply.

The i18n tests check every translation file: each must parse, cover every text in the sources, keep the {} placeholders, have enough plural forms, and contain no duplicate or unused entries.

Source layout

Path Contents
src/main.rs Start-up: arguments, the background process, the window
src/app.rs, src/app/ The window: listing, sidebar, dialogs, tabs, drag and drop, operations list
src/fs/ File system work: scanning, search, copy engine, trash, archives, servers, drives, undo history
src/plugins/ The bundled plugins
src/ui/ Drawing: widgets, themes, icons, icon styles, fonts
src/i18n/ Translations, one JSON file per language
src/settings.rs, src/settings_ui.rs Settings and the Settings window
src/keymap.rs Actions and their default keys
src/portal.rs, src/chooser.rs The D-Bus services and the file dialog
src/thumbs.rs Thumbnails
assets/ Desktop entry, icon, portal and D-Bus files, fonts, built-in themes
nix/ NixOS module and release data for the Nix package
packaging/, docker/, Dockerfile Packages and the container image
docs/releasing.md How a release is made

Translations

Each language is one JSON file in src/i18n/, mapping the English text to the translation: de.json, es.json, fr.json, ru.json, vi.json. Texts with {} keep the placeholder; texts with plural forms list each form. To add a language, add a file and its entry in src/i18n/mod.rs, then run the tests, which report missing and unused texts.

Clone this wiki locally