SeniorMars / tree-sitter-typst

A TreeSitter parser for the Typst File Format
MIT License
136 stars 7 forks source link

Include scanner.c in rust binding build #6

Open trevnels opened 1 year ago

trevnels commented 1 year ago

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.