-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
103 lines (97 loc) · 4.71 KB
/
Copy pathCargo.toml
File metadata and controls
103 lines (97 loc) · 4.71 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]
members = ["crates/*"]
resolver = "2"
[workspace.package]
edition = "2021"
rust-version = "1.77"
license = "MIT OR Apache-2.0"
[workspace.dependencies]
# Internal crates (path + version so they stay publishable on a later merge).
vibbi-core = { path = "crates/vibbi-core", version = "0.0.0" }
vibbi-fs = { path = "crates/vibbi-fs", version = "0.0.0" }
vibbi-pty = { path = "crates/vibbi-pty", version = "0.0.0" }
vibbi-browser = { path = "crates/vibbi-browser", version = "0.0.0" }
vibbi-chat = { path = "crates/vibbi-chat", version = "0.0.0" }
# Shared external versions.
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2"
tempfile = "3"
# HTTP client for the Anthropic Messages streaming client (vibbi-chat). Already
# in the tree via the Tauri plugins; `stream` exposes the SSE byte stream and
# `json` serializes the request body. `rustls` selects the rustls backend *with*
# its aws-lc-rs crypto provider: the updater plugin only enables reqwest's
# `rustls-no-provider`, which leaves `Client::new()` panicking for want of a
# default provider, so we union the provider in here (features are additive).
reqwest = { version = "0.13", default-features = false, features = ["json", "stream", "rustls"] }
# `StreamExt`/`stream::unfold` for adapting the reqwest byte stream into typed
# delta events; already resolved in the tree.
futures-util = "0.3"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync"] }
notify = "8"
# Cross-platform pseudo-terminal host for the terminal panel. On Windows this
# selects the ConPTY backend at runtime.
portable-pty = "0.9"
# ripgrep library crates for the global-search engine: a gitignore-aware
# parallel walk (`ignore`), the searcher and its regex matcher (`grep`), and
# `regex` for escaping a literal query into a pattern.
ignore = "0.4"
grep = "0.3"
regex = "1"
# Moves deleted files to the OS trash / recycle bin (Windows Shell, macOS
# Finder, XDG trash) instead of unlinking them, so a delete from the tree is
# recoverable - matching an editor's expectation.
trash = "5"
# libgit2 bindings for the editor's git integration (the gutter change bars:
# diff a file's buffer against its HEAD blob). Vendored so the build does not
# depend on a system libgit2.
git2 = { version = "0.19", default-features = false }
# URL parsing/normalization for the browser address bar (same crate Tauri
# re-exports as `tauri::Url`, so a resolved string round-trips without drift).
url = "2"
tauri-plugin-dialog = "2"
# The updater checks a signed release feed and installs updates; the process
# plugin lets the app relaunch after applying one. Config lives in
# tauri.conf.json under `plugins.updater` and `bundle.createUpdaterArtifacts`.
tauri-plugin-updater = "2"
tauri-plugin-process = "2"
# Opens external chat links (http/https/mailto) in the system browser via
# `openUrl`, so an external navigation never replaces the main app webview.
tauri-plugin-opener = "2"
# `unstable` unlocks the multi-webview API (`Window::add_child`) used to embed
# the native browser webview as a child of the main window; `specta` lets
# `tauri-specta` collect the command surface for typed binding generation.
tauri = { version = "2", features = ["unstable", "specta"] }
tauri-build = { version = "2" }
# `serde_json` adds the `specta::Type` impl for `serde_json::Value` (the
# `browser_eval` return type); `derive` supplies the `specta::Type` macro.
specta = { version = "=2.0.0-rc.25", features = ["derive", "serde_json"] }
# `typescript` enables the TypeScript exporter; `derive` supplies the `Event`
# derive macro used for the typed event surface.
tauri-specta = { version = "=2.0.0-rc.25", features = ["derive", "typescript"] }
# The TypeScript language backend `tauri-specta` exports through.
specta-typescript = { version = "0.0.12" }
# WebView2 control over the Chrome DevTools Protocol (Windows only). These match
# the versions Tauri/wry already resolve, so `PlatformWebview::controller` and
# these bindings share one `ICoreWebView2` type. `windows` supplies the
# `HSTRING`/`PCWSTR` string types the CDP calls take.
webview2-com = "0.38"
windows = "0.61"
# Release profile tuned for a shipped desktop binary: size-biased optimization,
# full link-time optimization, and a single codegen unit trade compile time for a
# smaller, faster binary; `strip` drops debug symbols. `panic` is left at the
# default unwind on purpose so a panic inside one command aborts that call rather
# than the whole long-running editor process.
[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
strip = true
[workspace.lints.rust]
unsafe_code = "deny"
unreachable_pub = "warn"
[workspace.lints.clippy]
all = { level = "deny", priority = -1 }
pedantic = { level = "warn", priority = -1 }
unwrap_used = "deny"
expect_used = "deny"