Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Extract git-wt binary to separate entry point file

Maximilian Roos376f3a50a78d
diff --git a/Cargo.toml b/Cargo.toml
index 423542049..85fd4e029 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -49,7 +49,7 @@ path = "src/main.rs"
# Install with: cargo install worktrunk --features git-wt
[[bin]]
name = "git-wt"
-path = "src/main.rs"
+path = "src/git_wt.rs"
required-features = ["git-wt"]
diff --git a/src/git_wt.rs b/src/git_wt.rs
new file mode 100644
index 000000000..02a3518d9
--- /dev/null
+++ b/src/git_wt.rs
@@ -0,0 +1,3 @@
+// git-wt binary entry point - delegates to wt's main
+// This exists to avoid Cargo's "file found in multiple build targets" warning
+include!("main.rs");