-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
103 lines (94 loc) · 3.51 KB
/
Copy pathCargo.toml
File metadata and controls
103 lines (94 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[workspace]
resolver = "2"
members = [
"crates/paneflow-agent-config",
"crates/paneflow-agent-setup",
"crates/paneflow-ai-hook",
"crates/paneflow-config",
"crates/paneflow-ghostty-smoke",
"crates/paneflow-ipc-client",
"crates/paneflow-libghostty-sys",
"crates/paneflow-mcp",
"crates/paneflow-mcp-install",
"crates/paneflow-process",
"crates/paneflow-shim",
"crates/paneflow-terminal-ghostty",
"src-app",
]
# Scope bare `cargo run` / `cargo build` / `cargo test` to the desktop app.
# The AI-hook callback and shim binaries are helpers built on demand (via
# `-p` or the release-min profile); including them here would make `cargo
# run` ambiguous across three binaries.
default-members = ["src-app"]
[workspace.package]
version = "0.4.0"
edition = "2021"
rust-version = "1.98.0"
license = "GPL-3.0-or-later"
authors = ["The AAM Group"]
description = "Native Rust terminal workspace for running coding agents in parallel"
repository = "https://github.com/theaamgroup/paneflow"
homepage = "https://github.com/theaamgroup/paneflow"
keywords = ["terminal", "coding-agents", "ai-agents", "gpui", "rust"]
categories = ["command-line-utilities"]
[workspace.dependencies]
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Error handling
thiserror = "2"
anyhow = "1"
# Shared runtime utilities
ctrlc = "3.4"
dirs = "6"
interprocess = "2.4"
libc = "0.2"
log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
notify = "7"
tempfile = "3"
tracing = "0.1"
uuid = { version = "1", features = ["v4"] }
which = "8"
# Internal crates
paneflow-agent-config = { path = "crates/paneflow-agent-config" }
paneflow-config = { path = "crates/paneflow-config" }
paneflow-ipc-client = { path = "crates/paneflow-ipc-client" }
paneflow-process = { path = "crates/paneflow-process" }
# Workspace-wide clippy lint policy (US-007). Mirrors the mandatory
# CLAUDE.md cherry-picked restriction set. `warn` is preferred over `deny`
# for the unwrap/expect family per documented community practice and the
# `allow-unwrap-in-tests` / `allow-expect-in-tests` escape hatches in
# `clippy.toml`. Each member crate declares `[lints] workspace = true`
# (or overrides specific lints locally where justified).
[workspace.lints.clippy]
panic = "deny"
unimplemented = "deny"
dbg_macro = "deny"
todo = "warn"
unwrap_used = "warn"
expect_used = "warn"
unwrap_in_result = "warn"
# Required by GPUI - these forks must stay in sync with the pinned Zed rev
# in src-app/Cargo.toml. When bumping GPUI rev, verify these still resolve.
[patch.crates-io]
async-process = { git = "https://github.com/zed-industries/async-process.git", rev = "0b6d6713570af61806e1e5cb40e0f757cb93fd9d" }
async-task = { git = "https://github.com/smol-rs/async-task.git", rev = "b4486cd71e4e94fbda54ce6302444de14f4d190e" }
calloop = { git = "https://github.com/zed-industries/calloop", rev = "eb6b4fd17b9af5ecc226546bdd04185391b3e265" }
[profile.release]
lto = "thin"
codegen-units = 1
strip = true
# Size-optimized profile for the embedded AI-hook callback and shim binaries
# (US-001 / US-004 / US-008). The hook callback runs ~6 times per AI turn, so
# it's a hot path; smaller binaries also reduce the rust-embed footprint per
# PaneFlow build. `panic = "abort"` and `lto = "fat"` are not available via
# per-package profile overrides, hence the dedicated profile.
#
# Build: `cargo build -p paneflow-ai-hook --profile release-min`
[profile.release-min]
inherits = "release"
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"