Go to file
2022-03-28 23:00:18 +01:00
.github Use git describe --tags rather than plain git describe 2022-03-28 23:00:18 +01:00
.vscode move launch.json to parent 2021-05-20 07:25:51 +01:00
agb Release agb v0.9.2 2022-03-28 22:50:36 +01:00
agb-fixnum Release agb-fixnum v0.2.1 2022-03-28 22:30:51 +01:00
agb-image-converter Release agb-image-converter v0.7.0 2022-03-28 22:21:45 +01:00
agb-macros Release agb-macros v0.2.0 2022-03-28 22:18:22 +01:00
agb-sound-converter Release agb-sound-converter v0.2.0 2022-03-28 22:24:07 +01:00
book Release agb v0.9.2 2022-03-28 22:50:36 +01:00
examples Release agb v0.9.2 2022-03-28 22:50:36 +01:00
mgba-test-runner Update lockfiles 2022-03-21 11:39:07 +00:00
template Release agb v0.9.2 2022-03-28 22:50:36 +01:00
.gitignore Delete library cargo.locks 2022-03-12 23:39:58 +00:00
justfile Make just fail if there is an error 2022-03-13 20:10:37 +00:00
LICENSE add project wide MPLv2 license 2021-05-29 15:22:19 +01:00
logo-original.png Add logo to repo and readme 2021-07-05 23:56:43 +01:00
README.md Add CMake to the test runner instructions 2021-08-01 21:16:57 +01:00
release.sh Don't try to git add the .lock file 2022-03-28 22:15:46 +01:00

Rust for the Game Boy Advance

AGB logo

This is a library for making games on the Game Boy Advance using the Rust programming language. It attempts to be a high level abstraction over the internal workings of the Game Boy Advance whilst still being high performance and memory efficient.

The documentation for the latest release can be found on docs.rs. Note that this repository does not necessarily contain the latest release, but in development versions. Further work is needed to improve the documentation.

Build Requirements

  • Recent rustup, see the rust website for instructions for your operating system.
    • You can update rustup with rustup update, or using your package manager if you obtained rustup in this way.
  • arm eabi binutils
    • Debian and derivatives: sudo apt install binutils-arm-none-eabi
    • Arch Linux and derivatives: pacman -S arm-none-eabi-binutils
    • Windows can apparently use the GNU Arm Embedded Toolchain. Make sure to select "Add path to environment variable" during the install.
    • This process has only been tested on Ubuntu and Arch Linux.

Test Requirements

  • libelf and cmake
    • Debian and derivatives: sudo apt install libelf-dev cmake
    • Arch Linux and derivatives: pacman -S libelf cmake
  • mgba-test-runner
    • Run cargo install --path mgba-test-runner inside this directory

Real Hardware Build

  • Need gbafix, rust implementation can be installed with cargo install gbafix.
  • On compiled elf file, additionally need to
arm-none-eabi-objcopy -O binary {input-elf} {output-gba}
gbafix {output-gba}

Stability

0% stable, I have no problems making drastic changes in the API in order to make something nice to work with.