Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
chore: Change git deps to crates.io dependencies where possible (#12362)
Piotr Osiewicz20f37f0647a7
diff --git a/Cargo.lock b/Cargo.lockindex 4ce837587fc..6e546ca9663 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -4971,8 +4971,9 @@ dependencies = [[[package]]name = "heed"-version = "0.20.0-alpha.9"-source = "git+https://github.com/meilisearch/heed?rev=036ac23f73a021894974b9adc815bc95b3e0482a#036ac23f73a021894974b9adc815bc95b3e0482a"+version = "0.20.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6f7acb9683d7c7068aa46d47557bfa4e35a277964b350d9504a87b03610163fd"dependencies = ["bitflags 2.4.2","byteorder",@@ -4989,13 +4990,15 @@ dependencies = [[[package]]name = "heed-traits"-version = "0.20.0-alpha.9"-source = "git+https://github.com/meilisearch/heed?rev=036ac23f73a021894974b9adc815bc95b3e0482a#036ac23f73a021894974b9adc815bc95b3e0482a"+version = "0.20.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb3130048d404c57ce5a1ac61a903696e8fcde7e8c2991e9fcfc1f27c3ef74ff"[[package]]name = "heed-types"-version = "0.20.0-alpha.9"-source = "git+https://github.com/meilisearch/heed?rev=036ac23f73a021894974b9adc815bc95b3e0482a#036ac23f73a021894974b9adc815bc95b3e0482a"+version = "0.20.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3cb0d6ba3700c9a57e83c013693e3eddb68a6d9b6781cacafc62a0d992e8ddb3"dependencies = ["bincode","byteorder",@@ -5744,7 +5747,7 @@ dependencies = ["tree-sitter-embedded-template","tree-sitter-heex","tree-sitter-html",- "tree-sitter-json 0.20.0",+ "tree-sitter-json 0.20.2","tree-sitter-markdown","tree-sitter-ruby","tree-sitter-rust",@@ -5834,7 +5837,7 @@ dependencies = ["tree-sitter-gomod","tree-sitter-gowork","tree-sitter-jsdoc",- "tree-sitter-json 0.20.0",+ "tree-sitter-json 0.20.2","tree-sitter-markdown","tree-sitter-proto","tree-sitter-python",@@ -6049,8 +6052,9 @@ dependencies = [[[package]]name = "lmdb-master-sys"-version = "0.1.0"-source = "git+https://github.com/meilisearch/heed?rev=036ac23f73a021894974b9adc815bc95b3e0482a#036ac23f73a021894974b9adc815bc95b3e0482a"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dc9048db3a58c0732d7236abc4909058f9d2708cfb6d7d047eb895fddec6419a"dependencies = ["cc","doxygen-rs",@@ -10901,8 +10905,9 @@ dependencies = [[[package]]name = "tree-sitter-bash"-version = "0.20.4"-source = "git+https://github.com/tree-sitter/tree-sitter-bash?rev=7331995b19b8f8aba2d5e26deb51d2195c18bc94#7331995b19b8f8aba2d5e26deb51d2195c18bc94"+version = "0.20.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "57da2032c37eb2ce29fd18df7d3b94355fec8d6d854d8f80934955df542b5906"dependencies = ["cc","tree-sitter",@@ -10920,8 +10925,9 @@ dependencies = [[[package]]name = "tree-sitter-cpp"-version = "0.20.0"-source = "git+https://github.com/tree-sitter/tree-sitter-cpp?rev=f44509141e7e483323d2ec178f2d2e6c0fc041c1#f44509141e7e483323d2ec178f2d2e6c0fc041c1"+version = "0.20.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "46b04a5ada71059afb9895966a6cc1094acc8d2ea1971006db26573e7dfebb74"dependencies = ["cc","tree-sitter",@@ -10929,8 +10935,9 @@ dependencies = [[[package]]name = "tree-sitter-css"-version = "0.19.0"-source = "git+https://github.com/tree-sitter/tree-sitter-css?rev=769203d0f9abe1a9a691ac2b9fe4bb4397a73c51#769203d0f9abe1a9a691ac2b9fe4bb4397a73c51"+version = "0.20.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3306ddefa1d2681adda2613d11974ffabfbeb215e23235da6c862f3493a04fd"dependencies = ["cc","tree-sitter",@@ -10938,8 +10945,9 @@ dependencies = [[[package]]name = "tree-sitter-elixir"-version = "0.1.0"-source = "git+https://github.com/elixir-lang/tree-sitter-elixir?rev=a2861e88a730287a60c11ea9299c033c7d076e30#a2861e88a730287a60c11ea9299c033c7d076e30"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1bc0b1f3e6d9f12ca22ae5171f32fd154e3aea29dff565d05ef785c28931415b"dependencies = ["cc","tree-sitter",@@ -10966,8 +10974,9 @@ dependencies = [[[package]]name = "tree-sitter-gomod"-version = "1.0.2"-source = "git+https://github.com/camdencheek/tree-sitter-go-mod#bbe2fe3be4b87e06a613e685250f473d2267f430"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "31d0a848a3a4a383fb97ef91241d972c3b996567cdc59040ad2c6fc48b874992"dependencies = ["cc","tree-sitter",@@ -11022,8 +11031,9 @@ dependencies = [[[package]]name = "tree-sitter-json"-version = "0.20.0"-source = "git+https://github.com/tree-sitter/tree-sitter-json?rev=40a81c01a40ac48744e0c8ccabbaba1920441199#40a81c01a40ac48744e0c8ccabbaba1920441199"+version = "0.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5a9a38a9c679b55cc8d17350381ec08d69fa1a17a53fcf197f344516e485ed4d"dependencies = ["cc","tree-sitter",@@ -11089,8 +11099,9 @@ dependencies = [[[package]]name = "tree-sitter-typescript"-version = "0.20.2"-source = "git+https://github.com/tree-sitter/tree-sitter-typescript?rev=5d20856f34315b068c41edaee2ac8a100081d259#5d20856f34315b068c41edaee2ac8a100081d259"+version = "0.20.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c8bc1d2c24276a48ef097a71b56888ac9db63717e8f8d0b324668a27fd619670"dependencies = ["cc","tree-sitter",@@ -11099,7 +11110,8 @@ dependencies = [[[package]]name = "tree-sitter-yaml"version = "0.0.1"-source = "git+https://github.com/zed-industries/tree-sitter-yaml?rev=f545a41f57502e1b5ddf2a6668896c1b0620f930#f545a41f57502e1b5ddf2a6668896c1b0620f930"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "324767d0ad6bc588467aa4b98f6f5cd6eda64ece1eae568f8fcf5b899bcf0fe9"dependencies = ["cc","tree-sitter",diff --git a/Cargo.toml b/Cargo.tomlindex 49845c5eff3..c53a5db0066 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -285,7 +285,7 @@ futures-batch = "0.6.1"futures-lite = "1.13"git2 = { version = "0.18", default-features = false }globset = "0.4"-heed = { git = "https://github.com/meilisearch/heed", rev = "036ac23f73a021894974b9adc815bc95b3e0482a", features = [+heed = { version = "0.20.1", features = ["read-txn-no-tls",] }hex = "0.4.3"@@ -353,28 +353,28 @@ toml = "0.8"tokio = { version = "1", features = ["full"] }tower-http = "0.4.4"tree-sitter = { version = "0.20", features = ["wasm"] }-tree-sitter-bash = { git = "https://github.com/tree-sitter/tree-sitter-bash", rev = "7331995b19b8f8aba2d5e26deb51d2195c18bc94" }+tree-sitter-bash = "0.20.5"tree-sitter-c = "0.20.1"-tree-sitter-cpp = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "f44509141e7e483323d2ec178f2d2e6c0fc041c1" }-tree-sitter-css = { git = "https://github.com/tree-sitter/tree-sitter-css", rev = "769203d0f9abe1a9a691ac2b9fe4bb4397a73c51" }-tree-sitter-elixir = { git = "https://github.com/elixir-lang/tree-sitter-elixir", rev = "a2861e88a730287a60c11ea9299c033c7d076e30" }+tree-sitter-cpp = "0.20.5"+tree-sitter-css = "0.20"+tree-sitter-elixir = "0.1.1"tree-sitter-embedded-template = "0.20.0"tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "b82ab803d887002a0af11f6ce63d72884580bf33" }-tree-sitter-gomod = { git = "https://github.com/camdencheek/tree-sitter-go-mod" }+tree-sitter-gomod = "1.0.1"tree-sitter-gowork = { git = "https://github.com/d1y/tree-sitter-go-work" }rustc-demangle = "0.1.23"tree-sitter-heex = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "2e1348c3cf2c9323e87c2744796cf3f3868aa82a" }tree-sitter-html = "0.19.0"tree-sitter-jsdoc = { git = "https://github.com/tree-sitter/tree-sitter-jsdoc", rev = "6a6cf9e7341af32d8e2b2e24a37fbfebefc3dc55" }-tree-sitter-json = { git = "https://github.com/tree-sitter/tree-sitter-json", rev = "40a81c01a40ac48744e0c8ccabbaba1920441199" }+tree-sitter-json = "0.20.2"tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" }tree-sitter-proto = { git = "https://github.com/rewinfrey/tree-sitter-proto", rev = "36d54f288aee112f13a67b550ad32634d0c2cb52" }tree-sitter-python = "0.20.2"tree-sitter-regex = "0.20.0"tree-sitter-ruby = "0.20.0"tree-sitter-rust = "0.20.3"-tree-sitter-typescript = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "5d20856f34315b068c41edaee2ac8a100081d259" }-tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "f545a41f57502e1b5ddf2a6668896c1b0620f930" }+tree-sitter-typescript = "0.20.5"+tree-sitter-yaml = "0.0.1"unindent = "0.1.7"unicase = "2.6"unicode-segmentation = "1.10"diff --git a/crates/languages/src/cpp/highlights.scm b/crates/languages/src/cpp/highlights.scmindex bcfa01ca5c6..680dac8fa51 100644--- a/crates/languages/src/cpp/highlights.scm+++ b/crates/languages/src/cpp/highlights.scm@@ -112,7 +112,7 @@(true)(false)(null)- (nullptr)+ ("nullptr")] @constant(number_literal) @numberdiff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scmindex 365b95206da..d4c192d47ad 100644--- a/crates/languages/src/javascript/highlights.scm+++ b/crates/languages/src/javascript/highlights.scm@@ -17,7 +17,7 @@; Function and method definitions-(function+(function_expressionname: (identifier) @function)(function_declarationname: (identifier) @function)@@ -26,20 +26,20 @@(pairkey: (property_identifier) @function.method- value: [(function) (arrow_function)])+ value: [(function_expression) (arrow_function)])(assignment_expressionleft: (member_expressionproperty: (property_identifier) @function.method)- right: [(function) (arrow_function)])+ right: [(function_expression) (arrow_function)])(variable_declaratorname: (identifier) @function- value: [(function) (arrow_function)])+ value: [(function_expression) (arrow_function)])(assignment_expressionleft: (identifier) @function- right: [(function) (arrow_function)])+ right: [(function_expression) (arrow_function)]); Special identifiers@@ -225,5 +225,5 @@(jsx_attribute (property_identifier) @attribute)(jsx_opening_element (["<" ">"]) @punctuation.bracket)-(jsx_closing_element (["<" "/" ">"]) @punctuation.bracket)-(jsx_self_closing_element (["<" "/" ">"]) @punctuation.bracket)+(jsx_closing_element (["</" ">"]) @punctuation.bracket)+(jsx_self_closing_element (["<" "/>"]) @punctuation.bracket)diff --git a/crates/languages/src/javascript/overrides.scm b/crates/languages/src/javascript/overrides.scmindex eb0a33b067f..d133898768a 100644--- a/crates/languages/src/javascript/overrides.scm+++ b/crates/languages/src/javascript/overrides.scm@@ -5,10 +5,7 @@(template_string)] @string-[- (jsx_element)- (jsx_fragment)-] @element+(jsx_element) @element[(jsx_opening_element)diff --git a/crates/languages/src/tsx/highlights.scm b/crates/languages/src/tsx/highlights.scmindex f2ff2e8ed3c..fb74c926825 100644--- a/crates/languages/src/tsx/highlights.scm+++ b/crates/languages/src/tsx/highlights.scm@@ -17,7 +17,7 @@; Function and method definitions-(function+(function_expressionname: (identifier) @function)(function_declarationname: (identifier) @function)@@ -26,20 +26,20 @@(pairkey: (property_identifier) @function.method- value: [(function) (arrow_function)])+ value: [(function_expression) (arrow_function)])(assignment_expressionleft: (member_expressionproperty: (property_identifier) @function.method)- right: [(function) (arrow_function)])+ right: [(function_expression) (arrow_function)])(variable_declaratorname: (identifier) @function- value: [(function) (arrow_function)])+ value: [(function_expression) (arrow_function)])(assignment_expressionleft: (identifier) @function- right: [(function) (arrow_function)])+ right: [(function_expression) (arrow_function)]); Special identifiers@@ -235,5 +235,5 @@(jsx_attribute (property_identifier) @attribute)(jsx_opening_element (["<" ">"]) @punctuation.bracket)-(jsx_closing_element (["<" "/" ">"]) @punctuation.bracket)-(jsx_self_closing_element (["<" "/" ">"]) @punctuation.bracket)+(jsx_closing_element (["</" ">"]) @punctuation.bracket)+(jsx_self_closing_element (["<" "/>"]) @punctuation.bracket)diff --git a/crates/languages/src/tsx/overrides.scm b/crates/languages/src/tsx/overrides.scmindex eb0a33b067f..d133898768a 100644--- a/crates/languages/src/tsx/overrides.scm+++ b/crates/languages/src/tsx/overrides.scm@@ -5,10 +5,7 @@(template_string)] @string-[- (jsx_element)- (jsx_fragment)-] @element+(jsx_element) @element[(jsx_opening_element)diff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scmindex 72694b1adf5..bcb41c30b3f 100644--- a/crates/languages/src/typescript/highlights.scm+++ b/crates/languages/src/typescript/highlights.scm@@ -17,7 +17,7 @@; Function and method definitions-(function+(function_expressionname: (identifier) @function)(function_declarationname: (identifier) @function)@@ -26,20 +26,20 @@(pairkey: (property_identifier) @function.method- value: [(function) (arrow_function)])+ value: [(function_expression) (arrow_function)])(assignment_expressionleft: (member_expressionproperty: (property_identifier) @function.method)- right: [(function) (arrow_function)])+ right: [(function_expression) (arrow_function)])(variable_declaratorname: (identifier) @function- value: [(function) (arrow_function)])+ value: [(function_expression) (arrow_function)])(assignment_expressionleft: (identifier) @function- right: [(function) (arrow_function)])+ right: [(function_expression) (arrow_function)]); Special identifiers