11 releases

new 0.2.1 Feb 7, 2025
0.2.0 Feb 5, 2025
0.1.8 Jan 31, 2025
0.1.7 Jun 5, 2024
0.1.1 Oct 6, 2023

#203 in FFI

Download history 33/week @ 2024-10-23 36/week @ 2024-10-30 17/week @ 2024-11-06 33/week @ 2024-11-13 41/week @ 2024-11-20 65/week @ 2024-11-27 55/week @ 2024-12-04 43/week @ 2024-12-11 20/week @ 2024-12-18 9/week @ 2025-01-01 19/week @ 2025-01-08 25/week @ 2025-01-15 32/week @ 2025-01-22 218/week @ 2025-01-29 353/week @ 2025-02-05

629 downloads per month
Used in 19 crates (2 directly)

MIT/Apache

27KB
621 lines

Configuration for Playdate Bindings Generator

Lightweight util for build-scripts to configure and execute playdate-bindgen used to generate bindings to Playdate with extras.

Usage

Cargo.toml:

[build-dependencies.bindgen]
package = "playdate-bindgen-cfg"
version = "*"

Add this to build-dependencies and add to your build-script something like this:

let mut cfg = bindgen::Cfg::default();
cfg.output = Some("some/output/path.rs");

let pdbindgen_found = bindgen::Runner::find_tool(&cfg);    // find existing pdbindgen (path, version)
let sdk_version = bindgen::Runner::find_sdk_version(&cfg); // execute pdbindgen to find SDK properly
let result = bindgen::Runner::gen_cmd(&cfg);               // execute pdbindgen to generate bindings

For complex examples see build-script in the playdate-sys crate.


This software is not sponsored or supported by Panic.

Dependencies

~0–255KB