Repository navigation
The first release of Hematite, a Linux-native, open-source Xbox One
runtime written in Rust.
Pre-alpha: this release does not run games or real homebrew yet. It
loads and runs Windows x64 programs that stay within what's implemented
(the kernel basics and the C runtime). It also shows you exactly which
system functions any title needs and which ones are still missing. Graphics,
the UWP app model and input are next; see the
roadmap.
What it can do
Run Windows x64 programs natively on Linux
- No CPU emulation: titles are mapped into a Linux process and run directly
on the host CPU. - PE32+ loading with relocation (including loading away from the preferred
address), import linking, delay-load imports, TLS templates and callbacks,
and per-section memory protection. - Each guest thread gets a Windows-style TEB/PEB through the GS register.
- Calls to functions Hematite doesn't implement yet are reported by name
(dll!Function) instead of crashing.
About 320 system functions
- Kernel (
kernelx,kernel32,kernelbase,api-ms-win-core-*):- console, heaps, virtual memory, time and performance counters;
- threads (including suspended), events, mutexes, semaphores, and
single and multiple-object waits; - critical sections, SRW locks,
InitOnce, TLS and FLS; - the
CreateFilefamily, module handles andGetProcAddress,
VirtualQuery/VirtualProtect; - code-page conversion, command line, system info, environment variables.
- C runtime (
msvcrt,ucrtbase,api-ms-win-crt-*,vcruntime140):- startup and exit (
_initterm, atexit/onexit tables); FILE*streams;- the full printf family with Microsoft formatting rules, including the
variadic forms; - strings, memory, math and time.
- startup and exit (
Open titles the way homebrew ships
.appxand.msixpackages,.appxbundle/.msixbundlebundles,
unpacked package folders and bare.exefiles.- Packages are read through
AppxManifest.xmland extracted to
~/.cache/hematite/packages/, with path-traversal protection.
Desktop app (hematite-gui)
- Library: grid or list view, search, sorting (name, recent,
compatibility), each package's own tile artwork, and drag-and-drop for
folders and packages. - Title pages: a compatibility score (the share of imported system
functions that are implemented), every import marked as implemented or
missing, executable details, and play history (last run result, play time,
missing functions hit). - Console: live output with filter and follow, a callout listing missing
functions, copy and save to file. - Settings: library folders, dark and light themes, 8 accent colors plus
a custom one, interface size, card size, animations and debug options. - Each title runs in its own process, so a crash never takes the app down.
- Keyboard shortcuts and right-click menus.
Command line (hematite)
hematite inspect <title>: headers, sections and every import, with+
marking implemented ones.hematite run <title>.hematite --version.
Verified with
- A freestanding loader test that imports from
kernelx.dll, run at its
preferred address and relocated. - A C-runtime test program built two ways with mingw-w64 (mingw stdio and
msvcrtprintf), covering printf formatting, the heap, file I/O, 4 threads
with their own TLS, atomics, a critical section and events. - The same title packed as an
.appx. - 16 automated tests in CI on every push.
Known limitations
- No graphics, audio, input, WinRT or UWP app model yet, so real UWP
homebrew stops at its first missing function. - No structured or C++ exception handling yet.
- DLLs shipped inside a package aren't loaded yet; only the main executable.
- Guest file paths map directly onto host paths; there's no virtual file
system yet. - Hematite is not a sandbox: titles run as native code with your user's
permissions.
Install
Requires x86-64 Linux with glibc 2.39 or newer (Ubuntu 24.04, Fedora 40,
Debian 13 or later) and a Wayland or X11 desktop with OpenGL for the app.
tar xf hematite-2026.12.1-linux-x86_64.tar.gz
cd hematite-2026.12.1-linux-x86_64
./hematite-gui # desktop app
./hematite --version # command lineHematite contains no Microsoft code, SDK material, keys or firmware. It's
developed clean-room. Licensed GPL-3.0-or-later.
Build
| Commit | ede1f4c |
| Built | 2026-12-01 on ubuntu-24.04 (glibc 2.39) |
| Toolchain | rustc 1.100.1 (20ddd0171 2026-11-25) |
hematite-2026.12.1-linux-x86_64.tar.gz SHA-256 |
8bf8e93735afb4acb686c616d6a98fdd6859d0715e83976159c83e5921bb6aa5 |