7 releases

0.3.2 Feb 27, 2023
0.3.1 Jan 13, 2023
0.2.3 Jan 2, 2023
0.1.5 Mar 9, 2022
0.1.1 Feb 7, 2022

#269 in Emulators

32 downloads per month

MIT license

230KB
3.5K SLoC

rust-libretro-example-core

Very simple example core using the rust-libretro API abstractions.

This crate demonstrates how a minimal setup could look like.

Build status Latest version Documentation License

How to run:

Simply run cargo build or make debug to compile a debug build. The produced shared library will follow the standard naming scheme of Rust, so Linux builds for example will be saved in ../target/debug/librust_libretro_example_core.so.

Release builds can be compiled with cargo build --release or make release. As usual, the produced library will reside in ../target/debug/. The Makefile also provides a native target that instructs rustc to optimize the produced code for your host CPU only.

One easy way to test your compiled core is to use RetroArch’s CLI: retroarch -L <path to your built library>

Dependencies

~4.5–7.5MB
~140K SLoC