feat: include build script links in Rust bindings
This patch updates the Rust binding's build script to output [build metadata][links]. This makes it easier for downstream crates to determine the include path, in case they need to compile their own C code that requires the tree-sitter headers. [links]: https://doc.rust-lang.org/cargo/reference/build-scripts.html#the-links-manifest-key
This commit is contained in:
parent
1ce0918e8d
commit
44aa80d678
2 changed files with 11 additions and 5 deletions
|
|
@ -12,6 +12,7 @@ repository = "https://github.com/tree-sitter/tree-sitter"
|
|||
rust-version.workspace = true
|
||||
|
||||
build = "binding_rust/build.rs"
|
||||
links = "tree-sitter"
|
||||
|
||||
include = [
|
||||
"/binding_rust/*",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue