docs.rs failed to build mgba-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
mgba
Safe Rust wrapper around libmgba for GBA emulation.
Usage
use Core;
use Path;
let mut core = new.expect;
core.load_rom.expect;
core.reset.expect;
// Run one frame
core.run_frame.expect;
// Read the framebuffer (240x160 XBGR8 pixels)
let pixels = core.video_buffer;
Building
This crate depends on mgba-sys, which builds libmgba from source via cmake.
See the mgba-sys README for build prerequisites.
Features
- Safe ownership model with RAII cleanup
- Video buffer access (240x160 XBGR8)
- Audio sample reading (stereo interleaved i16 at 32768 Hz)
- Input key mapping
Sendbut notSync— safe to move between threads, but not to share references
License
MIT — applies to the Rust wrapper code in this crate. The underlying libmgba library is licensed under MPL-2.0.