diff --git a/Cargo.lock b/Cargo.lock index 2c898be3..3cc3f803 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3070,15 +3070,9 @@ dependencies = [ "cc", "regex", "regex-syntax", - "tree-sitter-language 0.1.0 (git+https://github.com/tree-sitter/tree-sitter)", + "tree-sitter-language", ] -[[package]] -name = "tree-sitter-language" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2545046bd1473dac6c626659cc2567c6c0ff302fc8b84a56c4243378276f7f57" - [[package]] name = "tree-sitter-language" version = "0.1.0" @@ -3090,7 +3084,7 @@ version = "0.0.1" dependencies = [ "cc", "tree-sitter", - "tree-sitter-language 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tree-sitter-language", ] [[package]] diff --git a/takolib/src/parser/mod.rs b/takolib/src/parser/mod.rs index 1f145ad6..a0102f22 100644 --- a/takolib/src/parser/mod.rs +++ b/takolib/src/parser/mod.rs @@ -292,7 +292,7 @@ pub fn parse(file: &Path, input: &str, _tokens: &[Token]) -> Result let mut parser = TSParser::new(); // TODO: Set logger. parser - .set_language(tree_sitter_tako::LANGUAGE) + .set_language(&tree_sitter_tako::LANGUAGE.into()) .expect("Error loading Tako parser"); let old_tree: Option<&Tree> = None; diff --git a/tree-sitter-tako/Cargo.toml b/tree-sitter-tako/Cargo.toml index 36054e98..fa5066a4 100644 --- a/tree-sitter-tako/Cargo.toml +++ b/tree-sitter-tako/Cargo.toml @@ -17,7 +17,7 @@ include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"] path = "bindings/rust/lib.rs" [dependencies] -tree-sitter-language = "0.1.0" +tree-sitter-language = { git = "https://github.com/tree-sitter/tree-sitter" } [dev-dependencies] tree-sitter = { git = "https://github.com/tree-sitter/tree-sitter" } diff --git a/tree-sitter-tako/bindings/rust/lib.rs b/tree-sitter-tako/bindings/rust/lib.rs index e21568e3..cee091e6 100644 --- a/tree-sitter-tako/bindings/rust/lib.rs +++ b/tree-sitter-tako/bindings/rust/lib.rs @@ -47,7 +47,7 @@ mod tests { fn test_can_load_grammar() { let mut parser = tree_sitter::Parser::new(); parser - .set_language(super::LANGUAGE) + .set_language(&super::LANGUAGE.into()) .expect("Error loading Tako parser"); } }