Skip to content

Commit

Permalink
+cbindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Nov 22, 2024
1 parent c0b69e0 commit 4729ba7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions projects/mozilla.org/cbindgen/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
distributable:
url: https://github.com/mozilla/cbindgen/archive/refs/tags/{{ version.tag }}.tar.gz
strip-components: 1

provides:
- bin/cbindgen

versions:
github: mozilla/cbindgen

build:
dependencies:
rust-lang.org: '>=1.70'
rust-lang.org/cargo: '*'
script: cargo install --locked --path . --root {{prefix}}

test:
dependencies:
rust-lang.org/rust-bindgen: '*'
script:
- run: bindgen $FIXTURE > output.rs
fixture:
extname: h
content: |
typedef struct Doggo {
int many;
char wow;
} Doggo;
void eleven_out_of_ten_majestic_af(Doggo* pupper);
- cbindgen output.rs | grep 'extern "C"'

0 comments on commit 4729ba7

Please sign in to comment.