-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
247 lines (204 loc) · 6.1 KB
/
Copy pathCargo.toml
File metadata and controls
247 lines (204 loc) · 6.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
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
[package]
name = "space_query"
version = "0.1.0"
edition = "2021"
description = "SPACE Query: a desktop SQL query tool built with Rust and FLTK (Oracle, MySQL, MariaDB)"
authors = ["Developer"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/letspurify-ux/space_query"
keywords = ["database", "sql", "oracle", "mysql", "gui"]
categories = ["database", "gui"]
build = "build.rs"
[[bin]]
name = "space_query"
path = "src/main.rs"
test = false
# The verification harnesses in `src/bin` are programs, not test suites: they
# are run by hand as `cargo run --bin <name>`, need a live database or a real
# FLTK event loop, and report through their own exit codes. None of them
# declares a `#[test]`, so the test target Cargo generates for each one only
# ever prints "running 0 tests" — while still paying the full link and
# first-run cost of a fresh binary. Turning those empty harnesses off keeps
# `cargo test` on the code that actually has tests. `cargo run --bin` is
# unaffected.
#
# `oracle_compare_test_all` is the exception: its tests are hermetic, so it
# keeps the default `test = true`.
[[bin]]
name = "capture_feature_tour"
path = "src/bin/capture_feature_tour.rs"
test = false
[[bin]]
name = "mysql_fixture_snapshot"
path = "src/bin/mysql_fixture_snapshot.rs"
test = false
[[bin]]
name = "tns_thin_probe"
path = "src/bin/tns_thin_probe.rs"
test = false
[[bin]]
name = "verify_activity_cancel_live"
path = "src/bin/verify_activity_cancel_live.rs"
test = false
[[bin]]
name = "verify_auto_commit_live"
path = "src/bin/verify_auto_commit_live.rs"
test = false
[[bin]]
name = "verify_bind_prompt_live"
path = "src/bin/verify_bind_prompt_live.rs"
test = false
[[bin]]
name = "verify_bind_prompt_ui"
path = "src/bin/verify_bind_prompt_ui.rs"
test = false
[[bin]]
name = "verify_column_layout_ui"
path = "src/bin/verify_column_layout_ui.rs"
test = false
[[bin]]
name = "verify_object_browser_tabs_ui"
path = "src/bin/verify_object_browser_tabs_ui.rs"
test = false
[[bin]]
name = "verify_commit_close_live"
path = "src/bin/verify_commit_close_live.rs"
test = false
[[bin]]
name = "verify_ddl_transform_live"
path = "src/bin/verify_ddl_transform_live.rs"
test = false
[[bin]]
name = "verify_derived_table_wrap"
path = "src/bin/verify_derived_table_wrap.rs"
test = false
[[bin]]
name = "verify_editor_convenience_ui"
path = "src/bin/verify_editor_convenience_ui.rs"
test = false
[[bin]]
name = "verify_explain_plan_live"
path = "src/bin/verify_explain_plan_live.rs"
test = false
[[bin]]
name = "verify_grid_copy_csv"
path = "src/bin/verify_grid_copy_csv.rs"
test = false
[[bin]]
name = "verify_grid_features_live"
path = "src/bin/verify_grid_features_live.rs"
test = false
[[bin]]
name = "verify_grid_keyboard_selection"
path = "src/bin/verify_grid_keyboard_selection.rs"
test = false
[[bin]]
name = "verify_grid_save_live"
path = "src/bin/verify_grid_save_live.rs"
test = false
[[bin]]
name = "verify_grid_shortcut_leak"
path = "src/bin/verify_grid_shortcut_leak.rs"
test = false
[[bin]]
name = "verify_grid_sql_export"
path = "src/bin/verify_grid_sql_export.rs"
test = false
[[bin]]
name = "verify_grid_sql_export_live"
path = "src/bin/verify_grid_sql_export_live.rs"
test = false
[[bin]]
name = "verify_ime_minimal"
path = "src/bin/verify_ime_minimal.rs"
test = false
[[bin]]
name = "verify_import_live"
path = "src/bin/verify_import_live.rs"
test = false
[[bin]]
name = "verify_import_ui"
path = "src/bin/verify_import_ui.rs"
test = false
[[bin]]
name = "verify_object_export_live"
path = "src/bin/verify_object_export_live.rs"
test = false
[[bin]]
name = "verify_proc_exec_live"
path = "src/bin/verify_proc_exec_live.rs"
test = false
[[bin]]
name = "verify_read_only_live"
path = "src/bin/verify_read_only_live.rs"
test = false
[[bin]]
name = "verify_session_leak_live"
path = "src/bin/verify_session_leak_live.rs"
test = false
[[bin]]
name = "verify_result_export"
path = "src/bin/verify_result_export.rs"
test = false
[[bin]]
name = "verify_result_export_ui"
path = "src/bin/verify_result_export_ui.rs"
test = false
[[bin]]
name = "verify_transaction_mode_live"
path = "src/bin/verify_transaction_mode_live.rs"
test = false
[[bin]]
name = "verify_value_edit_live"
path = "src/bin/verify_value_edit_live.rs"
test = false
[[bin]]
name = "verify_value_viewer_ui"
path = "src/bin/verify_value_viewer_ui.rs"
test = false
[dependencies]
fltk = { version = "1.5", features = ["no-pango"] }
oracle = "0.6"
mysql = "25"
tns_thin = { package = "tns-thin", path = "crates/tns-thin" }
serde = { version = "1.0", features = ["derive"] }
# `raw_value` keeps a JSON number's exact spelling on import; it is additive
# and does not change how `serde_json::Value` is represented.
serde_json = { version = "1.0", features = ["raw_value"] }
chrono = "0.4"
dirs = "6.0"
once_cell = "1.19"
keyring = { version = "3", default-features = false }
libc = "0.2"
[target.'cfg(target_os = "macos")'.dependencies]
keyring = { version = "3", default-features = false, features = ["apple-native"] }
[target.'cfg(target_os = "windows")'.dependencies]
keyring = { version = "3", default-features = false, features = ["windows-native"] }
windows-sys = { version = "0.61", features = ["Win32_System_ProcessStatus", "Win32_System_Threading"] }
[target.'cfg(target_os = "linux")'.dependencies]
keyring = { version = "3", default-features = false, features = ["sync-secret-service", "crypto-rust"] }
libdbus-sys = { version = "0.2.7", default-features = false, features = ["vendored"] }
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
# Keep unwinding enabled so runtime panic guards (catch_unwind) can recover
# in production instead of terminating the whole process immediately.
panic = "unwind"
strip = true
# Optimized profile for slow #[ignore] harness tests (e.g. the IntelliSense
# fixture sweep): release-level speed without fat LTO, so rebuilds stay fast.
[profile.sweep]
inherits = "release"
lto = false
codegen-units = 16
strip = false
incremental = true
[build-dependencies]
cc = "1.2"
syn = { version = "2", features = ["full"] }
winres = "0.1"
[dev-dependencies]
proc-macro2 = { version = "1", features = ["span-locations"] }
quote = "1"
syn = { version = "2", features = ["full", "visit"] }