6 releases

0.1.5 Apr 15, 2024
0.1.4 Apr 13, 2024
0.1.2 Nov 21, 2023
0.1.1 Oct 6, 2023

#203 in FFI

Download history 64/week @ 2024-01-13 5/week @ 2024-01-20 2/week @ 2024-01-27 26/week @ 2024-02-03 53/week @ 2024-02-10 52/week @ 2024-02-17 93/week @ 2024-02-24 59/week @ 2024-03-02 72/week @ 2024-03-09 65/week @ 2024-03-16 81/week @ 2024-03-23 227/week @ 2024-03-30 90/week @ 2024-04-06 345/week @ 2024-04-13 41/week @ 2024-04-20 35/week @ 2024-04-27

574 downloads per month
Used in 18 crates (2 directly)

MIT/Apache

16KB
345 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–280KB