Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use a fork of `ctor` to silence warnings generated by macro (#3275)
Marshall Bowersacf37804ebb7
diff --git a/Cargo.lock b/Cargo.lockindex 0c951dd4417..2787475e834 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -2334,9 +2334,8 @@ dependencies = [[[package]]name = "ctor"-version = "0.1.26"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096"+version = "0.1.20"+source = "git+https://github.com/zed-industries/rust-ctor?rev=7f824cf6a7943885a649b579f33f9ac53f0d1db6#7f824cf6a7943885a649b579f33f9ac53f0d1db6"dependencies = ["quote","syn 1.0.109",diff --git a/Cargo.toml b/Cargo.tomlindex f2ad2949fee..5f4bebfe493 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -117,7 +117,10 @@ resolver = "2"[workspace.dependencies]anyhow = { version = "1.0.57" }async-trait = { version = "0.1" }-ctor = { version = "0.1" }+# TODO: Switch back to the published version of `ctor` once:+# 1. A new version of `ctor` is published with this change: https://github.com/mmastrac/rust-ctor/pull/295+# 2. We've confirmed it's fine to update to the latest version of `ctor` (we're currently on v0.1.20).+ctor = { git = "https://github.com/zed-industries/rust-ctor", rev = "7f824cf6a7943885a649b579f33f9ac53f0d1db6" }derive_more = { version = "0.99.17" }env_logger = { version = "0.9" }futures = { version = "0.3" }diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.tomlindex bee8d0bc429..941898cdc3e 100644--- a/crates/zed/Cargo.toml+++ b/crates/zed/Cargo.toml@@ -84,7 +84,7 @@ async-recursion = "0.3"async-trait.workspace = truebacktrace = "0.3"chrono = "0.4"-ctor = "0.1.20"+ctor.workspace = trueenv_logger.workspace = truefutures.workspace = trueignore = "0.4"diff --git a/crates/zed2/Cargo.toml b/crates/zed2/Cargo.tomlindex 2c93de734e9..48c6dc22691 100644--- a/crates/zed2/Cargo.toml+++ b/crates/zed2/Cargo.toml@@ -80,7 +80,7 @@ async-recursion = "0.3"async-trait.workspace = truebacktrace = "0.3"chrono = "0.4"-ctor = "0.1.20"+ctor.workspace = trueenv_logger.workspace = truefutures.workspace = trueignore = "0.4"