Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

chore: Add worktree_benchmarks to cargo workspace (#45344)

Piotr Osiewicz7ee56e1a18c8
diff --git a/Cargo.lock b/Cargo.lock
index 4beb6c11f42..f9acd6989be 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -20265,6 +20265,16 @@ dependencies = [
"zlog",
]
+[[package]]
+name = "worktree_benchmarks"
+version = "0.1.0"
+dependencies = [
+ "fs",
+ "gpui",
+ "settings",
+ "worktree",
+]
+
[[package]]
name = "writeable"
version = "0.6.1"
diff --git a/Cargo.toml b/Cargo.toml
index 825dc79e089..b507e882448 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -198,6 +198,7 @@ members = [
"crates/web_search_providers",
"crates/workspace",
"crates/worktree",
+ "crates/worktree_benchmarks",
"crates/x_ai",
"crates/zed",
"crates/zed_actions",
diff --git a/crates/worktree_benchmarks/src/main.rs b/crates/worktree_benchmarks/src/main.rs
index 00f268b75fc..c1b76f9e3c4 100644
--- a/crates/worktree_benchmarks/src/main.rs
+++ b/crates/worktree_benchmarks/src/main.rs
@@ -5,8 +5,7 @@ use std::{
use fs::RealFs;
use gpui::Application;
-use settings::Settings;
-use worktree::{Worktree, WorktreeSettings};
+use worktree::Worktree;
fn main() {
let Some(worktree_root_path) = std::env::args().nth(1) else {
@@ -27,6 +26,7 @@ fn main() {
true,
fs,
Arc::new(AtomicUsize::new(0)),
+ true,
cx,
)
.await