8 releases

0.1.7 Jun 5, 2024
0.1.6 May 10, 2024
0.1.5 Apr 15, 2024
0.1.2 Nov 21, 2023
0.1.1 Oct 6, 2023

#171 in FFI

Download history 35/week @ 2024-06-15 24/week @ 2024-06-22 4/week @ 2024-06-29 12/week @ 2024-07-06 42/week @ 2024-07-13 10/week @ 2024-07-20 20/week @ 2024-07-27 21/week @ 2024-08-03 38/week @ 2024-08-10 55/week @ 2024-08-17 64/week @ 2024-08-24 53/week @ 2024-08-31 36/week @ 2024-09-07 52/week @ 2024-09-14 59/week @ 2024-09-21 46/week @ 2024-09-28

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

MIT/Apache

17KB
353 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–265KB