In script/generate-bindings, add flags for latest bindgen

This commit is contained in:
Max Brunsfeld 2021-05-25 17:58:30 -07:00
parent fda35894d4
commit 036aceed57
2 changed files with 15 additions and 17 deletions

View file

@ -3,12 +3,14 @@
output_path=lib/binding_rust/bindings.rs
header_path='lib/include/tree_sitter/api.h'
bindgen \
--no-layout-tests \
--whitelist-type '^TS.*' \
--whitelist-function '^ts_.*' \
--opaque-type FILE \
--distrust-clang-mangling \
bindgen \
--no-layout-tests \
--whitelist-type '^TS.*' \
--whitelist-function '^ts_.*' \
--opaque-type FILE \
--size_t-is-usize \
--translate-enum-integer-types \
--distrust-clang-mangling \
$header_path > $output_path
echo "" >> $output_path