-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
124 lines (105 loc) · 4.1 KB
/
Copy pathCargo.toml
File metadata and controls
124 lines (105 loc) · 4.1 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[package]
name = "pooprusteek"
version = "0.1.0"
edition = "2024"
rust-version = "1.91"
description = "A fast, beautiful TUI coding agent powered by DeepSeek"
license = "MIT"
[[bin]]
name = "pooprusteek"
path = "src/main.rs"
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
# TUI
# `unstable-rendered-line-info` exposes Paragraph::line_count — the real
# WordWrapper row count used for scroll math (estimates diverge on CJK/wrap).
ratatui = { version = "0.30", features = ["unstable-rendered-line-info"] }
crossterm = { version = "0.29", features = ["event-stream"] }
# HTTP
reqwest = { version = "0.13", features = ["json", "stream", "cookies", "rustls", "multipart", "form"], default-features = false }
# HTTP server (`/serve` API mode) — hyper directly instead of a framework:
# three routes don't justify axum's tower stack, and hyper 1.x is already in
# the dependency tree via reqwest.
hyper = { version = "1", features = ["server", "http1"] }
hyper-util = { version = "0.1", features = ["tokio"] }
http-body-util = "0.1"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Error handling
color-eyre = "0.6"
thiserror = "2"
# CLI
clap = { version = "4", features = ["derive"] }
# Config
toml = "1"
dirs = "6"
# Logging / tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Async streams
futures = "0.3"
async-trait = "0.1"
# Markdown / syntax
pulldown-cmark = "0.13"
syntect = { version = "5", default-features = false, features = ["default-fancy"] }
# Misc
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1", features = ["v4"] }
textwrap = "0.16"
unicode-width = "0.2"
base64 = "0.22"
regex = "1"
wasmtime = "27"
# MCP OAuth: encrypted token storage, browser launch, PKCE challenge
keyring = "4"
# `keyring` 4.1.3's own default-store auto-init (`v1::Entry::new`) has a
# logic bug (`AtomicBool::compare_exchange(false, true, ..) == Ok(true)` can
# never be true on the success path — CAS success from `false` always
# returns `Ok(false)`) that leaves no store registered, so every `Entry::new`
# fails with `NoDefaultStore`. `oauth_store.rs` works around it by doing the
# same one-time init itself via `keyring-core::set_default_store` — these
# are the same backend crates `keyring`'s own `v1` feature already pulls in
# per target (see the `[target...]` tables below), just named directly so we
# can call the setter ourselves.
keyring-core = "1"
open = "5"
sha2 = "0.10"
# PTY for interactive CLI tools (arrow-key menus, REPLs)
portable-pty = "0.9"
# Semantic skill matching: local ONNX embeddings (multilingual-e5-small) +
# Snowball stemming for the sparse half of the hybrid match. Slimmed
# features: no image models, rustls instead of native-tls (matches reqwest).
fastembed = { version = "5.17.2", default-features = false, features = [
"ort-download-binaries-rustls-tls",
"hf-hub-rustls-tls",
] }
rust-stemmers = "1.2.0"
[target.'cfg(target_os = "windows")'.dependencies]
windows-native-keyring-store = "1"
# GlobalMemoryStatusEx (auto-size embedder batch) + SetStdHandle (redirect
# stderr into errors.log so ONNX Runtime's output can't corrupt the TUI) +
# Job Objects (kill-on-close so detached background jobs can't outlive a
# force-closed app; see tools::background::types::win_job).
windows-sys = { version = "0.60", features = [
"Win32_System_SystemInformation",
"Win32_System_Console",
"Win32_Foundation",
"Win32_Security",
"Win32_System_JobObjects",
"Win32_System_Threading",
] }
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
apple-native-keyring-store = { version = "1", features = ["keychain"] }
# libc for: total physical RAM (macOS sysctl hw.memsize; auto-size embedder
# batch) and stderr fd redirect into errors.log (dup2, all unix).
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[target.'cfg(all(unix, not(any(target_os = "macos", target_os = "ios", target_os = "android"))))'.dependencies]
zbus-secret-service-keyring-store = { version = "1", features = ["crypto-rust"] }
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true