r/coolgithubprojects • • 21m ago

Hematite: an open-source, Linux-first Xbox One runtime in Rust (pre-alpha, no graphics yet)

Post image

I've started Hematite, a GPL-3.0 project to run Xbox One software on Linux, starting with homebrew. It's written in Rust and built from scratch, not on Wine.

How it works: the Xbox One CPU is x86-64, so there's no CPU emulation. Hematite maps the title's PE executables into memory and runs them natively. Every call into a system DLL lands in a Rust implementation of that function (kernelx/kernel32, the C runtime, WinRT and so on). Anything not implemented yet is reported by name the moment the title calls it, and that list is effectively the to-do list.

Working today (2026.12.2):

- loading `.exe`, `.appx`/`.msix` packages and the DLLs that titles ship

- threads, synchronization, files and memory mapping

- Windows structured exception handling, and C++ exceptions from both GCC and MSVC-ABI code

- a desktop app with a library, play history and missing-function reports

First real target: RetroArch's UWP (Dev Mode) build. 318 of its 463 imports are linked, and it gets through C runtime and C++/CX startup. It isn't playable yet: there's no graphics, audio or input.

Clean room: no leaked SDKs/XDKs, no Microsoft binaries, keys or game content. Retail games aren't a goal right now.

Next: the C++/CX runtime, then a window, then GL ES passthrough for RetroArch's first pixels, then Direct3D 11 → Vulkan.

Repo, roadmap and compatibility notes: https://github.com/Belligerently/hematite

Release: https://github.com/Belligerently/hematite/releases/tag/v2026.12.2

Feedback is welcome, and so is help, especially from people who know WinRT, Direct3D or Xbox Dev Mode.

2 Upvotes

0 comments sorted by