How to compile tree-sitter as dynamic library #351
Closed
HerringtonDarkholme
started this conversation in
General
Replies: 1 comment
-
This worked for me ! Thank so much! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We don't have tree-sitter dynamic library instruction on the internet. But looking through the source code gives us some idea.
https://github.com/tree-sitter/tree-sitter/blob/a62bac5370dc5c76c75935834ef083457a6dd0e1/cli/loader/src/lib.rs#L111
and then
will give you a dynamic lib at the
TREE_SITTER_LIBDIR
.Alternatively, you can use these commands https://github.com/tree-sitter/tree-sitter/blob/a62bac5370dc5c76c75935834ef083457a6dd0e1/cli/loader/src/lib.rs#L380-L410
Beta Was this translation helpful? Give feedback.
All reactions