#lua #managed #tree-sitter #mlua #lua-bindings #environments #ltreesitter

mlua-tree-sitter

Provides access to tree-sitter parse trees in Lua code managed by the mlua crate

1 unstable release

0.0.0 Nov 20, 2023

#8 in #mlua

21 downloads per month

MIT license

2KB

mlua-tree-sitter

This crate provides access to the ltreesitter Lua tree-sitter bindings in Lua environments managed by the mlua crate.

Please see the crate documentation for example usage.

Building

This crate depends on the mlua crate, which supports multiple Lua versions, and can either link against a system-installed copy of Lua, or build its own copy from vendored Lua source. These choices are all controlled via mlua features.

When building and testing this crate, make sure to provide all necessary features on the command line:

$ cargo test --features mlua/lua54,mlua/vendored

When building a crate that depends on this crate, add a dependency on mlua so that you can set its feature flags:

[dependencies]
mlua = { version="0.9", features=["lua54", "vendored"] }
mlua-tree-sitter = { version="0.1" }

Licensed

Licensed under the MIT license.

No runtime deps