Skip to content

Bazel repository for building tree-sitter.

License

Notifications You must be signed in to change notification settings

zadlg/tree-sitter-bazel

Repository files navigation

Bazel repository for tree-sitter.

This Bazel repository allows users to compile and use the tree-sitter C API from their Bazel projects.

Importing to some existing project

Important

--experimental_cc_implementation_deps MUST be enabled, see implementation_deps.

See INSTALL.md.

Targets

The following targets are exposed by this repository:

  • @tree-sitter-bazel//:tree-sitter: the tree-sitter C API.

Build configurations

The following build configuration are available:

  • @tree-sitter-bazel//build_config:wasm: enable wasm (not yet supported).
  • @tree-sitter-bazel//build_config:hide_symbols: hide symbols (default: false).