Remove unnecessary types from binding.rs

This commit is contained in:
Max Brunsfeld 2021-12-09 21:02:15 -08:00
parent 9f535f95bd
commit 8de8c64c95
2 changed files with 9 additions and 14 deletions

View file

@ -1,7 +1,5 @@
/* automatically generated by rust-bindgen 0.59.1 */
pub type __darwin_size_t = ::std::os::raw::c_ulong;
pub type FILE = [u64; 19usize];
pub type TSSymbol = u16;
pub type TSFieldId = u16;
#[repr(C)]
@ -359,10 +357,6 @@ extern "C" {
length: *mut u32,
) -> *mut TSRange;
}
extern "C" {
#[doc = " Write a DOT graph describing the syntax tree to the given file."]
pub fn ts_tree_print_dot_graph(arg1: *const TSTree, arg2: *mut FILE);
}
extern "C" {
#[doc = " Get the node's type as a null-terminated string."]
pub fn ts_node_type(arg1: TSNode) -> *const ::std::os::raw::c_char;

View file

@ -3,14 +3,15 @@
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 \
--size_t-is-usize \
--translate-enum-integer-types \
--distrust-clang-mangling \
bindgen \
--no-layout-tests \
--whitelist-type '^TS.*' \
--whitelist-function '^ts_.*' \
--opaque-type FILE \
--blocklist-type FILE \
--blocklist-type '^__.*' \
--blocklist-function ts_tree_print_dot_graph \
--size_t-is-usize \
$header_path > $output_path
echo "" >> $output_path