Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
250 lines (242 loc) · 11.9 KB
/
Copy pathCargo.toml
File metadata and controls
250 lines (242 loc) · 11.9 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
[workspace]
resolver = "3"
members = [
"core/crates/account",
"core/crates/ai",
"core/crates/bindgen",
"core/crates/cli",
"core/crates/core",
"core/crates/ffi",
"core/crates/foreign-import",
"core/crates/mcp",
"core/crates/net",
"core/crates/session",
"core/crates/ssh",
"core/crates/storage",
"core/crates/test-fixtures",
"core/crates/test-support",
"core/crates/drivers/cassandra",
"core/crates/drivers/clickhouse",
"core/crates/drivers/duckdb",
"core/crates/drivers/mongodb",
"core/crates/drivers/mssql",
"core/crates/drivers/mysql",
"core/crates/drivers/postgres",
"core/crates/drivers/redis",
"core/crates/drivers/sqlite",
"linux/crates/app",
"linux/crates/platform",
]
[workspace.package]
edition = "2024"
rust-version = "1.97"
license = "AGPL-3.0-or-later"
publish = false
[workspace.dependencies]
tablepro-account = { path = "core/crates/account" }
tablepro-ai = { path = "core/crates/ai" }
tablepro-cli = { path = "core/crates/cli" }
tablepro-core = { path = "core/crates/core" }
tablepro-driver-cassandra = { path = "core/crates/drivers/cassandra" }
tablepro-driver-clickhouse = { path = "core/crates/drivers/clickhouse" }
tablepro-driver-duckdb = { path = "core/crates/drivers/duckdb" }
tablepro-driver-mongodb = { path = "core/crates/drivers/mongodb" }
tablepro-driver-mssql = { path = "core/crates/drivers/mssql" }
tablepro-driver-mysql = { path = "core/crates/drivers/mysql" }
tablepro-driver-postgres = { path = "core/crates/drivers/postgres" }
tablepro-driver-redis = { path = "core/crates/drivers/redis" }
tablepro-driver-sqlite = { path = "core/crates/drivers/sqlite" }
tablepro-foreign-import = { path = "core/crates/foreign-import" }
tablepro-mcp = { path = "core/crates/mcp" }
tablepro-net = { path = "core/crates/net" }
tablepro-linux-platform = { path = "linux/crates/platform" }
tablepro-session = { path = "core/crates/session" }
tablepro-ssh = { path = "core/crates/ssh" }
tablepro-storage = { path = "core/crates/storage" }
tablepro-test-fixtures = { path = "core/crates/test-fixtures" }
tablepro-test-support = { path = "core/crates/test-support" }
async-trait = "0.1"
thiserror = "2"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["raw_value"] }
regex = "1"
# Edits a TOML config file and keeps its comments and layout.
toml_edit = "0.25.15"
sqlparser = { version = "0.63", default-features = false, features = ["std"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "time", "sync", "process"] }
tokio-util = { version = "0.7", default-features = false, features = ["codec", "rt"] }
secrecy = { version = "0.10", features = ["serde"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Pinned to the minor uniffi-bindgen-cs supports; the default feature pulls in a generator the library never runs.
uniffi = { version = "=0.31.2", default-features = false }
csbindgen = "1.9.8"
# The driver dials through its own hyper-rustls connector, so the crate's
# own TLS features would only add a second, unused TLS stack.
clickhouse = { version = "0.15", default-features = false }
sqlx = { version = "0.9", default-features = false, features = ["runtime-tokio", "chrono", "uuid", "json"] }
# TLS goes through the ClientConfig the driver builds, on aws-lc-rs.
# Values are read as CqlValue, so no chrono, num-bigint or bigdecimal
# feature is needed.
scylla = { version = "1.9", default-features = false, features = ["rustls-023"] }
# The driver reads and writes DECIMAL through tiberius's own Numeric.
tiberius = { version = "0.13", default-features = false, features = ["tds80", "rustls", "chrono"] }
# The driver hands redis-rs a stream it opened and wrapped in TLS itself, so
# none of the crate's TLS features is on: rustls stays on aws-lc-rs.
redis = { version = "1.7", default-features = false, features = ["aio", "tokio-comp"] }
# rustls on aws-lc-rs, bson 3 and the resolver a DNS seed list needs. The
# crate's TLS fills its roots from webpki-roots unless a CA file is given,
# so the driver always gives it one: the system store, plus the user's CA.
# The driver names bson's types through this, the same bson 3 the mongodb
# crate uses, with the chrono and uuid conversions the grid's values need.
base64 = "0.22"
bson = { version = "3.1", default-features = false, features = ["chrono-0_4", "serde_json-1", "uuid-1"] }
mongodb = { version = "3.9.1", default-features = false, features = [
"compat-3-3-0",
"bson-3",
"rustls-tls-aws-lc",
"dns-resolver",
] }
chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] }
csv = "1.4"
# Already built for duckdb's arrow, with its terminal support; a text
# table turns that off itself (force_no_tty).
comfy-table = "8.0"
unicode-width = "0.2"
# Folds accents out of a name for the Finder-like order the Apple apps sort a library by.
unicode-normalization = "0.1.25"
# Extended grapheme clusters, the characters a masking rule and a mask count in, as Swift counts them.
unicode-segmentation = "1.13"
# No zlib feature: it pulls libz-sys, and the pure-Rust deflate keeps
# the build free of another C dependency. Constant memory lets a sheet
# spill its rows to a temporary file instead of holding them.
rust_xlsxwriter = { version = "0.102", default-features = false, features = ["chrono", "constant_memory"] }
zip = { version = "9.0", default-features = false, features = ["deflate"] }
futures = "0.3"
futures-util = { version = "0.3", default-features = false, features = ["std"] }
bytes = "1"
fallible-iterator = "0.2"
tokio-postgres = { version = "0.7.18", default-features = false, features = ["runtime"] }
postgres-types = { version = "0.2.14", features = ["with-chrono-0_4"] }
postgres-protocol = "0.6.12"
deadpool-postgres = { version = "0.14.2", default-features = false, features = ["rt_tokio_1"] }
deadpool = { version = "0.13.1", default-features = false, features = ["managed", "rt_tokio_1"] }
clickhouse-types = "0.1.3"
# The provider comes from the ClientConfig the driver builds, so neither
# provider feature is needed, and leaving both off keeps ring out.
tokio-postgres-rustls = { version = "0.14.0", default-features = false }
libsqlite3-sys = ">=0.30.1, <0.38.0"
# DuckDB 2.0, compiled from the sources the crate ships, since only Ubuntu
# 26.10 packages libduckdb (docs/decisions/0031-duckdb-2.md). json and
# parquet are linked in, since extensions are never downloaded.
duckdb = { version = "~1.20000.1", default-features = false, features = ["bundled", "json", "parquet"] }
num-bigint = { version = "0.4", default-features = false, features = ["std"] }
proptest = "1.11"
rustls = { version = "0.23", default-features = false, features = ["aws_lc_rs", "std", "tls12"] }
rustls-native-certs = "0.8"
rustls-platform-verifier = "0.7"
pem-rfc7468 = { version = "1", features = ["alloc"] }
socket2 = { version = "0.6", features = ["all"] }
# In-process SSH (core ADR 0009): aws-lc-rs, rsa for RSA keys, no compression.
russh = { version = "0.65", default-features = false, features = ["aws-lc-rs", "rsa"] }
# HMAC-SHA1 for hashed known_hosts names, on the one provider (ADR 0009).
aws-lc-rs = "1"
rustix = { version = "1.1", default-features = false, features = ["std"] }
tokio-rustls = { version = "0.26", default-features = false, features = ["aws_lc_rs", "logging", "tls12"] }
hyper-util = { version = "0.1", features = ["client-legacy", "http1", "tokio"] }
hyper-rustls = { version = "0.27", default-features = false, features = ["aws-lc-rs", "http1", "tls12"] }
# rustls on aws-lc-rs with rustls-platform-verifier, the provider and verifier
# tablepro-net's Verify Full builds.
reqwest = { version = "0.13.5", default-features = false, features = ["rustls", "json", "query", "form"] }
tower-service = "0.3"
http = "1"
rcgen = { version = "0.14", default-features = false, features = ["crypto", "pem", "aws_lc_rs"] }
rustls-pki-types = { version = "1", features = ["std"] }
gtk4 = { version = "0.11", features = ["gnome_50"] }
# The PNG and SVG surfaces the ER diagram exports through; the crate is
# already in the tree through gtk4.
cairo-rs = { version = "0.22", features = ["png", "svg"] }
# The gtk_v4 features match the GTK 4.22 floor; without them the bindings
# leave out the GTK interfaces their widgets implement, Accessible among them.
libadwaita = { version = "0.9", features = ["v1_9", "gtk_v4_22"] }
sourceview5 = { version = "0.11", features = ["v5_18", "gtk_v4_18"] }
# 3.x is the GNOME 50 release, which speaks the loaders' 2+ protocol.
glycin = { version = "3.1", default-features = false, features = ["gdk4", "tokio"] }
gio = { version = "0.22", features = ["v2_88"] }
gio-unix = { version = "0.22", features = ["v2_84"] }
glib = { version = "0.22", features = ["v2_88"] }
glib-build-tools = "0.22"
uuid = { version = "1", features = ["v4", "serde"] }
url = "2"
percent-encoding = "2"
# The Windows Credential Manager, where the core keeps secrets on Windows, the
# owning process of a loopback connection, from GetExtendedTcpTable, and the
# MachineGuid the TablePro account derives the machine ID from.
windows-sys = { version = "0.61", features = [
"Win32_Foundation",
"Win32_NetworkManagement_IpHelper",
"Win32_Networking_WinSock",
"Win32_Security_Credentials",
"Win32_System_Registry",
] }
# What other apps' saved connections are kept in: binary and XML property
# lists, XML, and the fixed-key ciphers those apps use for passwords.
plist = { version = "1.7", default-features = false }
roxmltree = "0.20"
aes = "0.8"
cbc = { version = "0.1", features = ["alloc"] }
blowfish = "0.9"
salsa20 = "0.10"
chacha20 = "0.9"
sha1 = "0.11"
sha2 = "0.11"
# A masked value's Stable Hash, HMAC-SHA256 as the macOS app computes it.
hmac = "0.13"
hex = "0.4"
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
zeroize = "1.9"
# The volume and index that name a file on Windows, which std reads only on nightly.
winapi-util = "0.1"
tempfile = "3"
testcontainers = { version = "0.27", default-features = false, features = ["aws-lc-rs"] }
testcontainers-modules = { version = "0.15", default-features = false, features = ["aws-lc-rs"] }
oo7 = { version = "0.6", default-features = false, features = ["tokio", "native_crypto", "unstable"] }
# TablePro's fork of rust-postgres, pinned by revision: the tokio-postgres-v0.7.18 tag plus the
# copy_in fix in rust-postgres/rust-postgres#1402, without which a COPY the server refuses before
# copy-in mode leaves the connection out of step. All three crates come from the fork, so the
# driver's postgres-types and postgres-protocol stay the ones tokio-postgres uses. Remove this
# once a tokio-postgres release has the fix.
[patch.crates-io]
tokio-postgres = { git = "https://github.com/TableProApp/rust-postgres", rev = "f8bdf78d12df410a1c1b485445a9d0683361a173" }
postgres-types = { git = "https://github.com/TableProApp/rust-postgres", rev = "f8bdf78d12df410a1c1b485445a9d0683361a173" }
postgres-protocol = { git = "https://github.com/TableProApp/rust-postgres", rev = "f8bdf78d12df410a1c1b485445a9d0683361a173" }
[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "deny"
[workspace.lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
todo = "deny"
unimplemented = "deny"
dbg_macro = "deny"
print_stdout = "deny"
print_stderr = "deny"
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
ignore_without_reason = "deny"
too_many_lines = "deny"
self_named_module_files = "deny"
# Unoptimised with debug info, DuckDB's archive is 2.6 GB, which every
# test binary of the app links, and the engine runs the suites at debug
# speed. The SDK's CXXFLAGS carry -g, so the Flatpak manifest adds -g0.
[profile.dev.package.libduckdb-sys]
opt-level = 2
debug = false
# Left unset, a build script's dependency takes the profile of a normal
# one it matches, and the tests add such a match (xattr, through
# testcontainers), so cargo test built DuckDB a second time.
[profile.dev.build-override]
debug = false
[profile.release]
lto = "fat"
codegen-units = 1