libretro-rs
Getting started
A reference implementation is available in the example folder, and should be enough to get you started. At a high level, you need to modify your Cargo.toml:
[]
= "0.1"
[]
= ["cdylib"]
Then implement a trait and call a macro:
use *;
libretro_core!;
et voilĂ ! Running cargo build will produce a shared library (.so, .dll, etc) that you can use with a libretro front-end:
$ retroarch --verbose -L libemulator.so /path/to/game.rom