objz 623acd9e2c added: tests for retry envelope, manager rename, mod precedence, time buckets
Audit identified six high-priority coverage gaps. This commit closes
them with 30 net new passing tests.

- tests/net_retry.rs (new): 5 wiremock-based tests for the retry
  envelope in net/mod.rs. Covers get_json + download_file across:
  5xx retry-then-succeed, 4xx fail-fast (asserted via wiremock
  expect(1) so any retry attempt fails the test), and exhaust at
  MAX_RETRIES = 3 (asserted via expect(4)). The exhaust test takes
  ~3.5s of wall time because the production code sleeps 500 + 1000 +
  2000 ms between attempts; this is unavoidable without making the
  delays configurable.

- tests/launch_pipeline.rs: 3 new error-path tests against
  build_launch_invocation. merged_profile_missing_main_class_fails
  surfaces the LaunchError::Parse branch when meta.json deserialises
  cleanly but lacks mainClass. legacy_loader_profile_missing_loader_version_errors
  and legacy_loader_profile_missing_installer_json_errors exercise the
  two Parse branches inside migrate_legacy_loader_profile_if_needed.

- instance/manager.rs: 6 tests for rename (happy path, noop on same
  name, empty target rejected, missing source, target collision) and
  touch_last_played (sets the field to a stamp within 5 seconds of
  now). The InstanceManager rename surface had no coverage before;
  mutating the validation order or the std::fs::rename target would
  not have failed any existing test.

- instance/content/mods.rs: 4 new precedence-chain tests. The reader
  chain is fabric > quilt > forge-toml (which itself tries
  neoforge.mods.toml before mods.toml) > mcmod.info. Only the
  fabric-over-forge precedence had a test before. Adds quilt > forge,
  forge_toml > mcmod_info, neoforge.mods.toml > mods.toml, and a test
  that a mods.toml carrying only logoFile (no [[mods]] array) still
  resolves the icon.

- tui/widgets/instances.rs: 12 new tests for format_last_played. One
  case for the None input (returns "Never played"), then an rstest
  covering each bucket boundary in the match (0/59 just-now,
  60/3599 minutes, 3600/86399 hours, 86400/2591999 days,
  2592000/31535999 months, >=31536000 over-a-year). A mutation that
  bumps any boundary by one second, or swaps a unit suffix, fails at
  least one case.
2026-05-27 16:44:05 +02:00
2026-04-18 19:52:46 +02:00
2026-05-13 21:57:38 +02:00

rmcl

Contributors Forks Stargazers Issues GPL-3.0 License

Rusty MineCraft Launcher. or Rust MineCraft cLi. pick whichever sounds better to you.

screenshot

Report Bug · Request Feature


about

we all love TUIs. and we all know the official Minecraft launcher is not exactly a joy to use (performance wise; no hatespeech here). so here's rmcl, a fully featured Minecraft launcher that lives in your terminal. written in Rust because if you're replacing something bloated you might as well go all the way.

it does everything you'd expect from a launcher. multiple instances, mod loaders, modpack imports, Microsoft auth, content management, launching. all from a TUI or from the command line. the TUI is the main thing though, the CLI is there for scripting and automation.

features

instances create and manage multiple instances, each with their own version, loader, mods, and settings
mod loaders vanilla, Fabric, Quilt, Forge, NeoForge. more might show up later
content browse and toggle mods, shaders, resource packs. view worlds, screenshots, and logs
modpack import import from Modrinth via .mrpack file, URL, or slug
accounts multiple Microsoft accounts and offline players, switch between them
launching launch directly from the TUI or generate a desktop shortcut for any instance
desktop shortcuts click it and Minecraft starts, no need to open rmcl or type anything
CLI every feature the TUI has is also available as a subcommand
theming 10 built-in themes, custom themes, color overrides

authentication

rmcl uses its own Microsoft client ID for Minecraft account authentication.

Authentication is performed through Microsoft’s official services.

installation

macOS / Linux

prebuilt archives are attached to each GitHub release.

# Homebrew
brew install objz/tap/rmcl

Windows

release builds include a .zip archive and an .msi. WinGet and Chocolatey packages are submitted from release CI and become available after review.

# WinGet
winget install Objz.Rmcl

# Chocolatey
choco install rmcl

Arch Linux

# from source (release tarball)
paru -S rmcl

# prebuilt binary
paru -S rmcl-bin

# latest git
paru -S rmcl-git

Cargo

cargo install rmcl

package status

release:

GitHub release crates.io

package managers:

Homebrew tap WinGet Chocolatey

aur:

AUR rmcl AUR rmcl-bin AUR rmcl-git

from source

requires a Rust toolchain and a JDK (javac and jar on PATH).

git clone https://github.com/objz/rmcl.git
cd rmcl
cargo build --release

where things live

config & data

settings, accounts, instances, and cached game metadata.

what Linux macOS Windows
config (config.toml, theme.toml, accounts.json) ~/.config/rmcl/ ~/Library/Application Support/rmcl/ %APPDATA%\rmcl\
instances ~/.local/share/rmcl/instances/ ~/Library/Application Support/rmcl/instances/ %LOCALAPPDATA%\rmcl\instances\
metadata (versions, libraries, assets, loader profiles) ~/.local/share/rmcl/meta/ ~/Library/Application Support/rmcl/meta/ %LOCALAPPDATA%\rmcl\meta\

each instance has an instance.json for its config and a .minecraft/ directory with the actual game files. standard layout, nothing weird.

logs

launcher logs are per-session and contain rmcl's own output. instance launch logs capture game stdout/stderr per launch.

what Linux macOS Windows
launcher logs ~/.cache/rmcl/ ~/Library/Caches/rmcl/ %LOCALAPPDATA%\rmcl\
instance launch logs <instances>/<name>/.minecraft/logs/launches/ same same

configuration

everything is configured through TOML files. config.toml for paths, default memory allocation, and UI behavior. theme.toml for theme selection and border style. you can also override individual colors without making a full custom theme.


themes

rmcl ships with 10 built-in themes:

catppuccin · dracula · nord · gruvbox · one-dark · solarized · tailwind · tokyo-night · rose-pine · terminal

you can create your own by dropping a TOML file in ~/.config/rmcl/theme/ and referencing it by name, or point to an absolute path.


contributing

contributions are welcome. fork it, branch it, PR it. see CONTRIBUTING.md for code style and project structure.


license

GPL-3.0. see LICENSE.


Languages
Rust 99.7%
Shell 0.1%