-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathCargo.toml
More file actions
215 lines (210 loc) · 9.63 KB
/
Copy pathCargo.toml
File metadata and controls
215 lines (210 loc) · 9.63 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
[workspace]
resolver = "3"
exclude = ["vendor/sqlx-sqlite", "vendor/glib"]
members = [
"crates/gproxy-protocol",
"crates/gproxy-protocol-macros",
"crates/gproxy-seaorm",
"crates/gproxy-tokenizer",
"crates/gproxy-file",
"crates/gproxy-store",
"crates/gproxy-client",
"crates/gproxy-channel",
"crates/gproxy-cache",
"crates/gproxy-core",
"crates/gproxy-sdk",
"crates/gproxy-app",
"crates/gproxy-host-axum",
"crates/gproxy-host-edge",
"crates/gproxy",
"crates/gproxy-host-tauri",
]
# `cargo check`, `cargo test` and `cargo clippy` with no `-p` and no
# `--workspace` build this list, which is every crate except the desktop shell.
#
# The exclusion is not a demotion, and it is not about incremental builds: with
# a warm target directory the two selections are within half a second of each
# other. It is about the **cold** one. `gproxy-host-tauri` brings wry,
# webkit2gtk, gtk and their `*-sys` crates — about a hundred and eighty extra
# third-party crates that have nothing to say about the engine, and that a
# Linux box without the webkit2gtk-4.1, gtk+-3.0 and libsoup-3.0 development
# headers cannot build at all. Leaving it in the default set would make a fresh
# clone, a `cargo clean` and a toolchain bump slower for everyone, and would
# make the everyday command fail outright for a contributor who only wants to
# touch the store.
#
# It is still a member, so `--workspace` builds it, CI builds it, and the
# lockfile resolves with it in.
default-members = [
"crates/gproxy-protocol",
"crates/gproxy-protocol-macros",
"crates/gproxy-seaorm",
"crates/gproxy-tokenizer",
"crates/gproxy-file",
"crates/gproxy-store",
"crates/gproxy-client",
"crates/gproxy-channel",
"crates/gproxy-cache",
"crates/gproxy-core",
"crates/gproxy-sdk",
"crates/gproxy-app",
"crates/gproxy-host-axum",
"crates/gproxy-host-edge",
"crates/gproxy",
]
[workspace.package]
version = "4.1.0"
edition = "2024"
license = "AGPL-3.0-or-later"
repository = "https://github.com/LeenHawk/gproxy"
[workspace.dependencies]
aes-gcm = { version = "0.11", default-features = false, features = ["aes", "alloc", "zeroize"] }
argon2 = "0.6"
arc-swap = "1"
async-trait = "0.1"
# Every entry below that a wasm32 crate also uses (axum, reqwest, tokio) is
# declared with the fewest features that crate needs: features requested here
# cannot be switched off by a member, so each native member lists its own.
axum = { version = "0.8", default-features = false }
base64 = "0.23"
blake3 = "1"
fastcdc = "5"
zstd = "0.14"
clap = { version = "4", features = ["derive", "env"] }
chacha20poly1305 = "0.11"
gproxy-app = { path = "crates/gproxy-app", version = "=4.1.0", default-features = false }
gproxy = { path = "crates/gproxy", version = "=4.1.0", default-features = false }
gproxy-core = { path = "crates/gproxy-core", version = "=4.1.0", default-features = false }
gproxy-channel = { path = "crates/gproxy-channel", version = "=4.1.0", default-features = false }
gproxy-client = { path = "crates/gproxy-client", version = "=4.1.0", default-features = false }
gproxy-cache = { path = "crates/gproxy-cache", version = "=4.1.0", default-features = false }
gproxy-file = { path = "crates/gproxy-file", version = "=4.1.0", default-features = false }
gproxy-host-axum = { path = "crates/gproxy-host-axum", version = "=4.1.0", default-features = false }
gproxy-host-edge = { path = "crates/gproxy-host-edge", version = "=4.1.0" }
gproxy-host-tauri = { path = "crates/gproxy-host-tauri", version = "=4.1.0" }
gproxy-protocol = { path = "crates/gproxy-protocol", version = "=4.1.0", features = ["exhaustive"] }
gproxy-protocol-macros = { path = "crates/gproxy-protocol-macros", version = "=4.1.0" }
gproxy-sdk = { path = "crates/gproxy-sdk", version = "=4.1.0", default-features = false }
gproxy-seaorm = { path = "crates/gproxy-seaorm", version = "=4.1.0" }
gproxy-store = { path = "crates/gproxy-store", version = "=4.1.0" }
gproxy-tokenizer = { path = "crates/gproxy-tokenizer", version = "=4.1.0", default-features = false }
getrandom = { version = "0.4", features = ["wasm_js"] }
dashmap = { version = "6" }
dotenvy = "0.15"
getrandom_v02 = { package = "getrandom", version = "0.2", features = ["js"] }
gloo-timers = { version = "0.4", features = ["futures"] }
bytes = "1"
crc32fast = "1"
ed25519-dalek = "3"
futures-core = "0.3"
futures-sink = "0.3"
futures-util = "0.3"
futures-executor = "0.3"
form_urlencoded = "1"
http = "1"
hmac = "0.13"
# The Android host's way in from Java. `0.21` rather than the newer line
# because that is what `wry` resolves for Tauri's own Android binding, and two
# JNI crates in one application would be two `JNIEnv` types that cannot meet.
jni = "0.21"
js-sys = "0.3"
# Android only, and for three system calls: `pipe` and `dup2` put this
# process's standard output into logcat, which Android otherwise discards.
libc = "0.2"
# The desktop shell's credential store. `default-features = false` drops the
# `cli` glue — this is an application, not the keyring demo — and `v1` is the
# platform-native store and nothing else.
keyring = { version = "4", default-features = false, features = ["v1"] }
mime_guess = "2"
miniz_oxide = { version = "0.9", default-features = false, features = ["with-alloc"] }
multer = { version = "3", default-features = false }
moka = { version = "0.12", features = ["future"] }
opendal-core = { version = "0.59", default-features = false }
opendal-service-fs = { version = "0.59", default-features = false }
opendal-service-s3 = { version = "0.59", default-features = false }
opendal-http-transport-reqwest = { version = "0.59", default-features = false }
mysql_async = { version = "0.37", default-features = false, features = ["default-rustls"] }
openssl-sys = "0.9"
percent-encoding = "2"
paste = "1"
proc-macro2 = "1"
quote = "1"
redis = { version = "1.7", default-features = false, features = ["connection-manager", "tokio-rustls-comp"] }
rsa = { version = "0.9", features = ["sha2"] }
regex = "1"
reqwest = { version = "0.13", default-features = false, features = ["native-tls", "http2", "stream", "socks", "cookies"] }
# reqwest 0.12 over the platform's native TLS (OpenSSL on Linux): what the
# Codex CLI's HTTP client is built on.
reqwest_native = { package = "reqwest", version = "0.12", default-features = false, features = ["native-tls", "http2", "stream", "socks", "cookies"] }
reqwest-websocket = { version = "0.6", default-features = false }
rust_decimal = { version = "1", features = ["serde"] }
ruzstd = "0.9"
semver = "1"
self-replace = "1"
rust-embed = { version = "8", features = ["include-exclude"] }
sea-query = { version = "1", default-features = false, features = ["backend-mysql", "backend-postgres", "backend-sqlite", "derive"] }
sea-query-sqlx = { version = "0.9", default-features = false }
sea-schema = { version = "0.18", default-features = false }
sea-orm = { version = "2", default-features = false, features = ["macros", "with-json"] }
sea-orm-migration = { version = "2", default-features = false, features = ["with-time"] }
send_wrapper = { version = "0.6", features = ["futures"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde-wasm-bindgen = "0.6"
syn = { version = "3", features = ["full", "visit-mut"] }
tauri = { version = "2" }
tauri-build = { version = "2" }
tauri-plugin-dialog = "2"
tauri-plugin-single-instance = "2"
serde_urlencoded = "0.7"
sha2 = "0.11"
xxhash-rust = { version = "0.8", features = ["xxh64"] }
strum = { version = "0.28", features = ["derive"] }
tempfile = "3"
thiserror = "2"
time = { version = "0.3", features = ["parsing"] }
tiktoken-rs = "0.12"
tokio = { version = "1", default-features = false }
tokio-util = { version = "0.7", default-features = false, features = ["rt"] }
# Held at the line `reqwest-websocket` 0.6 builds on: gproxy-client hands it a
# `WebSocketConfig`, which has to be that crate's type.
tungstenite = { version = "0.28", default-features = false }
tokio-tungstenite = { version = "0.30", default-features = false, features = ["handshake"] }
tokio-postgres = "0.7"
tower = { version = "0.5", default-features = false }
hyper-util = { version = "0.1", default-features = false }
tokenizers = { version = "0.23", default-features = false, features = ["fancy-regex"] }
tokio-rusqlite = { version = "0.8", features = ["bundled"] }
toml = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
url = "2"
ts-rs = { version = "12", features = ["serde-json-impl"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
wasm-streams = "0.7"
web-sys = "0.3"
web-time = "1"
windows = "0.62"
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Storage_Packaging_Appx"] }
worker = { version = "0.8", default-features = false }
wreq = { version = "0.16", features = ["stream", "ws", "gzip", "brotli", "zstd", "deflate", "socks"] }
wreq-util = { version = "0.2", features = ["emulation"] }
zip = { version = "8", default-features = false, features = ["deflate"] }
zeroize = "1"
[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"
[patch.crates-io]
# Temporary glib 0.18 backport for GHSA-wrw7-89jp-8q8g (Dependabot #81).
# Upstream fix: https://github.com/gtk-rs/gtk-rs-core/pull/1343
# Remove this entry, vendor/glib and its workspace exclusion, then regenerate
# Cargo.lock once Tauri/GTK resolves to a fixed upstream glib (0.20+ or backport).
glib = { path = "vendor/glib" }
# Preserve individual statement caches while sending one SQLite worker command per batch.
sqlx-sqlite = { path = "vendor/sqlx-sqlite" }
# Native BoringSSL prefixing fixes macOS/Windows and cross-compiled archive layouts.
btls-sys = { git = "https://github.com/0x676e67/btls", rev = "609f955e6de4df4a215ee9b273d327af1c0771db" }