{"id":16847257,"url":"https://github.com/koute/libretro-backend","last_synced_at":"2025-03-17T05:32:05.834Z","repository":{"id":62442119,"uuid":"71806991","full_name":"koute/libretro-backend","owner":"koute","description":"Libretro API bindings for Rust","archived":false,"fork":false,"pushed_at":"2020-05-15T09:29:35.000Z","size":24,"stargazers_count":46,"open_issues_count":12,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T18:13:34.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koute.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-24T16:09:19.000Z","updated_at":"2024-06-20T03:49:18.000Z","dependencies_parsed_at":"2022-11-01T22:02:25.093Z","dependency_job_id":null,"html_url":"https://github.com/koute/libretro-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koute%2Flibretro-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koute%2Flibretro-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koute%2Flibretro-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koute%2Flibretro-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koute","download_url":"https://codeload.github.com/koute/libretro-backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846976,"owners_count":20357294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T13:07:16.127Z","updated_at":"2025-03-17T05:32:05.413Z","avatar_url":"https://github.com/koute.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Libretro API bindings for Rust\n\n[![Documentation](https://docs.rs/libretro-backend/badge.svg)](https://docs.rs/libretro-backend/*/libretro_backend/)\n\nThis crate exposes idiomatic Rust API bindings to the excellent [libretro] API.\n\nThe target audience of this library are emulator authors who want to turn\ntheir emulator into a libretro core, which relieves them from the necessity of\ncreating a full blown frontend for their emulator and allows them to concentrate\non actual emulation.\n\nIn its current state there is still **a lot** of features missing, nevertheless\nit should be useful enough to create a basic emulator.\n\nAs always, contributions are welcome!\n\n[libretro]: http://www.libretro.com/index.php/api/\n\n## Getting started\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[lib]\ncrate-type = [\"cdylib\"]\n\n[dependencies]\nlibretro-backend = \"0.2\"\n```\n\nand this to your crate root:\n\n```rust\n#[macro_use]\nextern crate libretro_backend;\n```\n\nthen just implement the [Core trait]:\n\n```rust\nstruct Emulator {\n    // ...\n}\n\nimpl libretro_backend::Core for Emulator {\n    // ...\n}\n```\n\nand use a macro:\n\n```rust\nlibretro_core!( Emulator );\n```\n\nFor a full example you can check out [this file], which is part of my NES\nemulator [Pinky].\n\n[Core trait]: https://docs.rs/libretro-backend/*/libretro_backend/trait.Core.html\n[this file]: https://github.com/koute/pinky/blob/master/pinky-libretro/src/lib.rs\n[Pinky]: https://github.com/koute/pinky\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license,\nshall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoute%2Flibretro-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoute%2Flibretro-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoute%2Flibretro-backend/lists"}