diff --git a/lib/binding_rust/bindings.rs b/lib/binding_rust/bindings.rs index 171b9a52..a8b67dc0 100644 --- a/lib/binding_rust/bindings.rs +++ b/lib/binding_rust/bindings.rs @@ -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; diff --git a/script/generate-bindings b/script/generate-bindings index 19c79e96..4b3fb951 100755 --- a/script/generate-bindings +++ b/script/generate-bindings @@ -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