tree-sitter-typst icon indicating copy to clipboard operation
tree-sitter-typst copied to clipboard

Include scanner.c in rust binding build

Open trevnels opened this issue 1 year ago • 0 comments

Previously, building the rust binding would fail with the following error, since scanner.c was not included in the build:

/usr/bin/ld: undefined reference to `tree_sitter_typst_external_scanner_create'
/usr/bin/ld: undefined reference to `tree_sitter_typst_external_scanner_destroy'
/usr/bin/ld: undefined reference to `tree_sitter_typst_external_scanner_scan'
/usr/bin/ld: undefined reference to `tree_sitter_typst_external_scanner_serialize'
/usr/bin/ld: undefined reference to `tree_sitter_typst_external_scanner_deserialize'

This PR includes it so that the rust binding builds successfully.

trevnels avatar May 10 '23 23:05 trevnels