tree-sitter-sql
tree-sitter-sql copied to clipboard
Update Cargo.toml
First, thanks for tree-sitter-sql
, I've just started using it.
This PR, expand the semver range for tree-sitter
in Cargo.toml
. Using this exampled range avoids the Rust compiler error,
expected struct `tree_sitter::Language`, found a different struct `tree_sitter::Language`
perhaps two different versions of crate `tree_sitter` are being used?
which is encountered when using this crate alongside other tree sitter crates e.g. tree-sitter-python
, tree-sitter-javascript
and tree-sitter-typescript
. The range is consistent with the range used in those crates e.g. https://github.com/tree-sitter/tree-sitter-python/blob/master/Cargo.toml).
I have submitted a similar PR here https://github.com/tree-sitter/tree-sitter-bash/pull/117 and at least for that repo, others have the same issue when using multliple tree-sitter-*
crates together: https://github.com/tree-sitter/tree-sitter-bash/pull/120.