Getting started: build from source

Last updated

Source: docs/BUILD_GUIDE.md and the README, rendered at commit 6fb53aa.

No signed release. Unsigned preview builds for some platforms, or build from source. Windows and Linux builds compile in CI but have not been tested by hand yet.

MyXterm builds from source with Rust 1.100 and Cargo on macOS, Linux and Windows: clone the repository and run cargo run --release -p myxterm-desktop.

Quick start

git clone https://github.com/adramelech/MyXterm.git
cd MyXterm
cargo run --release -p myxterm-desktop

Toolchain

Rust 1.100 (pinned in rust-toolchain.toml; rustup installs it on first build). The workspace builds the app (apps/desktop, binary myxterm) and its crates (crates/*).

OSAlso neededStatus
macOS (Apple Silicon, Intel)Xcode command-line tools (xcode-select --install)developed and run on Apple Silicon (macOS 26); Intel and older macOS not checked
Linux (x64, ARM64)pkg-config libxkbcommon-dev libxkbcommon-x11-dev libxcb1-dev libx11-xcb-dev libwayland-dev libfontconfig-dev libfreetype-dev; a Wayland or X11 session; mold optionalbuilds in CI; not checked by hand yet
Windows 10/11 (x64)Visual Studio 2022 Build Tools, Desktop development with C++builds in CI; not checked by hand yet

Run

cargo run --release -p myxterm-desktop          # your own sessions (stored in the platform data dir)
MYXTERM_DEMO=1 cargo run -p myxterm-desktop    # synthetic demo inventory; nothing is saved

Useful environment variables:

  • MYXTERM_DEMO=1: demo inventory with RFC 5737 addresses. Use it for every screenshot.
  • MYXTERM_WINDOW=1280x800: initial window size (screenshots, small-screen checks).

Data lives in ~/Library/Application Support/MyXterm (macOS), %APPDATA%\MyXterm (Windows) and $XDG_CONFIG_HOME/myxterm (Linux). Secrets are only ever in the OS keychain.

Profiles

  • --profile fast: optimized with debug info. This is the everyday development build.
  • --release: fat LTO, codegen-units = 1, panic = "unwind". Slow to build; used for benchmarks and releases.

The gate (run before every commit)

./scripts/gate.sh

It runs cargo fmt --check, cargo clippy --all-targets -- -D warnings, cargo nextest run for the workspace, cargo deny check (licences, advisories, sources) and gitleaks (secrets). CI runs the same checks on Linux, macOS and Windows (.github/workflows/).

On a machine with little memory, limit parallel jobs: CARGO_BUILD_JOBS=2 ./scripts/gate.sh.

Optional lab tests

Some integration tests (for example crates/files/tests/lab.rs) run only when you point them at your own test host through an environment variable such as MYXTERM_LAB_SFTP. They are skipped by default. Never commit real host names or addresses.