RUGENDOCS
Engine & contributing

Building

Toolchain, system packages, the checks CI runs, reference content and how releases are made.

Toolchain

Stable Rust 1.85+ via rustup. Then:

git clone https://github.com/rugen-dev/rugen-engine
cd rugen-engine
cargo build --release

System dependencies

Only Linux needs anything beyond the Rust toolchain (gamepad and audio backends):

OSInstall
Fedorasudo dnf install systemd-devel alsa-lib-devel
Debian / Ubuntusudo apt install libudev-dev libasound2-dev
Archsudo pacman -S systemd alsa-lib
Windowsnothing
macOSnothing

Checks CI runs

Run these before sending a change:

cargo fmt --all --check
cargo clippy --workspace --all-targets
cargo test --workspace

Reference content

reference/fetch.sh downloads MUGEN 1.1b1, the official docs, the Ikemen GO source and its v1.0.0 content pack into reference/. It is needed for the test fixtures and the frame-diff harness, not for building. When no data/ folder exists, the game also falls back to reference/mugen-1.1b1/data for common1.cns and the default screenpack. Reference content keeps its own licenses and is not committed.

Releases

Push a tag vX.Y.Z (or run the Release workflow manually). It builds release binaries for Linux, Windows and macOS, a Fedora .rpm via cargo-generate-rpm, and attaches them to a GitHub release. CI itself never does release builds, to keep free-tier minutes low.

Local rpm:

cargo install cargo-generate-rpm
cargo build --release
cargo generate-rpm -p crates/app

The server

rugen-server is its own repository:

git clone https://github.com/rugen-dev/rugen-server
cd rugen-server
cargo build --release

It takes the engine crates it shares as git dependencies. To work against a local engine checkout, add an untracked .cargo/config.toml in the server repository:

[patch."https://github.com/rugen-dev/rugen-engine"]
rugen-proto   = { path = "../rugen-engine/crates/proto" }
rugen-fair    = { path = "../rugen-engine/crates/fair" }
rugen-formats = { path = "../rugen-engine/crates/formats" }
rugen-cns     = { path = "../rugen-engine/crates/cns" }
rugen-sim     = { path = "../rugen-engine/crates/sim" }
rugen-net     = { path = "../rugen-engine/crates/net" }
rugen-content = { path = "../rugen-engine/crates/content" }

The server’s end-to-end tests use the engine checkout’s reference/ tree (KFM) and skip when it is missing; point RUGEN_ENGINE_DIR at it if it is not a sibling ../rugen-engine.

Something wrong on this page? Edit it on GitHub.

SEARCH !!

    ↑↓ to move, Enter to open