#windowing #display #graphics #image #font

maylib

A rust-native raylib alternative with multiple window support

11 releases

Uses new Rust 2024

0.3.4 Apr 8, 2025
0.3.3 Apr 8, 2025
0.2.4 Mar 31, 2025
0.1.0 Mar 30, 2025

#497 in GUI

Download history 393/week @ 2025-03-26 178/week @ 2025-04-02 284/week @ 2025-04-09

855 downloads per month

MPL-2.0 license

200KB
1K SLoC

MayLib

Multi-Window Raylib

Crates.io Downloads (latest version) GitHub forks Crates.io Version

Maylib Logo

I made multi-window raylib because I needed multiple windows in raylib.

While Maylib is based on raylib, it is not a fork. I just used raylib as a reference

TODOS

  • Possibly Migrate to gfx rendering
  • add more image utilities

Features

  • Supports mp3, wav, vorbis, flac, and aac audio.
  • Supports .png, .jpg, .tiff, and .webp images
  • Supports .ttf fonts

Build

Requirements

  • Cargo
  • Vcpkg
  • pkg-config
  • sdl2
  • sdl2-ttf
  • sdl2-gfx
  • sdl2-image

note that libraries like sdl2, sdl2-ttf, etc. need to be installed for the triplet you are building for also note that cargo test must be run with the --test-threads 1 argument. This is because sdl will crash if you have multiple instances in one process

Dependencies

~24–55MB
~1M SLoC