Crates.io | rust-libretro-example-core |
lib.rs | rust-libretro-example-core |
version | 0.3.2 |
source | src |
created_at | 2022-02-04 20:00:39.381742 |
updated_at | 2023-02-27 16:57:46.743809 |
description | libretro example core |
homepage | https://github.com/max-m/rust-libretro/ |
repository | https://github.com/max-m/rust-libretro/ |
max_upload_size | |
id | 527044 |
size | 9,317 |
Very simple example core using the rust-libretro API abstractions.
This crate demonstrates how a minimal setup could look like.
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>