fix: do not install parser.h
This commit is contained in:
parent
8ab14a0ee5
commit
f4c40f6098
8 changed files with 12 additions and 13 deletions
|
|
@ -14,12 +14,12 @@ rust-version.workspace = true
|
|||
build = "binding_rust/build.rs"
|
||||
|
||||
include = [
|
||||
"/binding_rust/*",
|
||||
"/Cargo.toml",
|
||||
"/include/*",
|
||||
"/src/*.h",
|
||||
"/src/*.c",
|
||||
"/src/unicode/*",
|
||||
"/binding_rust/*",
|
||||
"/Cargo.toml",
|
||||
"/src/*.h",
|
||||
"/src/*.c",
|
||||
"/src/unicode/*",
|
||||
"/include/tree_sitter/api.h",
|
||||
]
|
||||
|
||||
[features]
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ pub const LANGUAGE_VERSION: usize = ffi::TREE_SITTER_LANGUAGE_VERSION as usize;
|
|||
pub const MIN_COMPATIBLE_LANGUAGE_VERSION: usize =
|
||||
ffi::TREE_SITTER_MIN_COMPATIBLE_LANGUAGE_VERSION as usize;
|
||||
|
||||
pub const PARSER_HEADER: &'static str = include_str!("../include/tree_sitter/parser.h");
|
||||
pub const PARSER_HEADER: &str = include_str!("../src/parser.h");
|
||||
|
||||
/// An opaque object that defines how to parse a particular language. The code for each
|
||||
/// `Language` is generated by the Tree-sitter CLI.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#include "./subtree.h"
|
||||
#include "tree_sitter/parser.h"
|
||||
#include "./parser.h"
|
||||
|
||||
#define ts_builtin_sym_error_repeat (ts_builtin_sym_error - 1)
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ extern "C" {
|
|||
#include "./length.h"
|
||||
#include "./subtree.h"
|
||||
#include "tree_sitter/api.h"
|
||||
#include "tree_sitter/parser.h"
|
||||
#include "./parser.h"
|
||||
|
||||
typedef struct {
|
||||
TSLexer data;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ extern "C" {
|
|||
#include "./error_costs.h"
|
||||
#include "./host.h"
|
||||
#include "tree_sitter/api.h"
|
||||
#include "tree_sitter/parser.h"
|
||||
#include "./parser.h"
|
||||
|
||||
#define TS_TREE_STATE_NONE USHRT_MAX
|
||||
#define NULL_SUBTREE ((Subtree) {.ptr = NULL})
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#include "tree_sitter/api.h"
|
||||
#include "tree_sitter/parser.h"
|
||||
#include "./parser.h"
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef TREE_SITTER_FEATURE_WASM
|
||||
|
|
@ -12,7 +12,6 @@
|
|||
#include "./atomic.h"
|
||||
#include "./lexer.h"
|
||||
#include "./wasm.h"
|
||||
#include "./lexer.h"
|
||||
#include "./wasm/wasm-stdlib.h"
|
||||
|
||||
// The following symbols from the C and C++ standard libraries are available
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#include "tree_sitter/api.h"
|
||||
#include "tree_sitter/parser.h"
|
||||
#include "./parser.h"
|
||||
|
||||
bool ts_wasm_store_start(TSWasmStore *, TSLexer *, const TSLanguage *);
|
||||
void ts_wasm_store_stop(TSWasmStore *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue