Documentation · Try Xila · Community
Official Xila applications live in this workspace. The guest binaries are calculator, clock, pixel painter, text editor, synth, weather, digits, dashboard and home assistant; the other crates are native applications linked into a platform runtime. xila-wasm provides the host runtime and guest API in this workspace; Platforms selects its host feature when assembling runtimes. Core and the Platforms test harness are pinned to Git revisions in Cargo.toml.
Development and CI use Rust 1.97.0. The minimum supported Rust version is 1.97. Install mise and the native development packages listed in the Core development instructions. mise run build:applications produces the Wasm guests in target/wasm32-wasip1/release-wasm and shrinks them with wasm-opt, restricted to the WebAssembly proposals the host engine enables; build the release bundles through this task. Every guest is linked with 1-byte linear memory pages and a 32 KiB stack (see executables/wasm/README.md). mise run check:guest checks the guest target. mise run test:workspace runs host tests; install Node.js 24 and run npm ci first for Core's graphics font converter. The Platforms seed generator accepts the built binaries through its --applications-dir option.
This branch is part of a coordinated migration. The package publication workflow, local multi-repository overrides, and full integration and deployment checks are being completed before the migration can be considered ready.
For adjacent local checkouts, generate a Cargo config without changing the committed lockfile permanently:
python3 tools/local_overrides.py --core ../core --platforms ../platforms --output /tmp/xila-local.toml
cargo metadata --config /tmp/xila-local.toml --format-version 1
cargo test --config /tmp/xila-local.toml -p xila-command-line-shell --test integration_test --features xila/graphics_rendering_xrgb8888Cargo records patched paths in Cargo.lock; regenerate the lockfile without the local config before committing. Use the same Core checkout for all patches, including transitive platform dependencies.
Editable format 3 package manifests live in packaging/. They record the
package identity and minimum Xila version (xila_version). The package
workflow stages the WASI executable and its shortcuts, then builds and
verifies a signed .xpk archive and its SHA-256 digest. Pull requests use a
test signing key. Release jobs publish the signed archive and digest.
Before Xila 1.0, the package requires the same Xila minor version. From
Xila 1.0 onward, the package requires the same major version and at least
its declared minor version. See the
format 3 publication order
and device migration steps.
Each packaging/<app>.json also holds the catalog metadata of its application: summary (one line), license (SPDX expression, equal to the license of the application crate) and source (the HTTPS URL of the application's directory in this repository). homepage is optional. The signed manifest carries these values, and xila-package registry entry copies them into the registry entry of a release. Registry entries that exist already keep "metadata": null; the next release of each application carries the metadata. tools/validate_manifests.py fails if an application has no metadata or if its catalog license differs from the crate license, and tools/ci/verify_package.sh fails if the registry entry of a built package does not carry it.
CI uses separate mr-boxington target caches for host and WASI builds. On the first host Clippy run, mr-boxington reported 0 hits, 953 compilations without usable prior inputs or predictions, 26 bypasses and 0 seconds of estimated compiler work saved. This was a cold run; it does not establish warm-build reuse. Check subsequent job diagnostics and Cargo's build output before drawing cache conclusions.
mise run localization:lint checks application catalogs, placeholders, plural forms and semantic IDs, then runs Prettier on every JSON catalog. A plural message must contain exactly the required CLDR categories from embedded-i18n-macros 0.2.0 for its locale. The {count} placeholder must match the English other form. A translation may omit {count} when its grammar supplies the number, but it cannot rename the placeholder. The moved shortcuts catalog keeps the libraries/application_metadata namespace. Edit catalog files directly in pull requests. CI performs no synchronization step.
Japanese (ja) catalogs are experimental and require native-speaker and
on-device layout review. Use EMBEDDED_I18N_LOCALE=ja for the guest build; strict translation checking
is enabled in each crate's [package.metadata.i18n]. A localized graphical runtime
must also collect these catalogs with XILA_FONT_CATALOG_ROOTS and use a Core
revision with Japanese font subsetting; see Core's embedded-font documentation
for the optional, verified Japanese source font. Catalog subsetting does not
provide arbitrary Japanese input or IME support.
Each WASI application can supply launcher shortcuts under
executables/<app>/shortcuts/. The developer manifest in
packaging/<app>.json records the package identity, minimum Xila version,
capabilities and catalog metadata.
The package builder stages the descriptors under shortcuts/ and the binary
under executables/. The signed inventory covers all of these files. The
graphical Shell discovers the descriptors in the installed bundle when it
opens the desk.
A descriptor invokes /applications/executables/wasm with an argument such as
@bundle/executables/clock.wasm. The Shell resolves @bundle/ against the
installed bundle root. The main.json descriptor also supplies the built-in
guest's window title and icon.
The executables/package crate implements the native Xila CLI-only command package install / package list (registered in the native Platforms example), with bounded-memory TAR + SHA-256 verification at installation, not at launch. It trusts /configuration/system/packages/trusted.pub by default, accepts an explicitly supplied --public-key, and has an explicit --allow-untrusted override for unknown/unsigned publishers. Even with that override, invalid TARs or SHA-256 mismatches always fail. See package CLI documentation. CLI installation does not yet create launcher shortcuts, manage updates or download packages.
Part of Xila · Repositories · Community
Special thanks to Martin Legand for generously designing the Xila logo.