Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
159 lines (141 loc) · 4.31 KB
/
Copy pathCargo.toml
File metadata and controls
159 lines (141 loc) · 4.31 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
[package]
name = "sql-cli"
version = "1.85.15"
edition = "2021"
autobins = false
autoexamples = false
autotests = false # We'll use a single test harness
authors = ["TimelordUK <sjames8888@gmail.com>"]
description = "SQL query tool for CSV/JSON with both interactive TUI and non-interactive CLI modes - perfect for exploration and automation"
license = "MIT"
repository = "https://github.com/TimelordUK/sql-cli"
homepage = "https://github.com/TimelordUK/sql-cli"
documentation = "https://github.com/TimelordUK/sql-cli"
readme = "README.md"
keywords = ["csv", "tui", "sql", "vim", "data-analysis"]
categories = ["command-line-utilities", "database", "development-tools"]
exclude = [
"sql-cli/",
"proxy-server/",
"TradeApi/",
"TradeApi.Tests/",
"*.gif",
"*.cast",
"*.csv",
"*.json",
"*.ps1",
"coverage/",
"scripts/",
".github/",
".vscode/",
".idea/",
"demos/",
"docs/images/",
]
[lib]
name = "sql_cli"
path = "src/lib.rs"
# Main binary specifications (already defined, removing duplicates)
# Windows-specific dependencies
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["processthreadsapi", "psapi", "memoryapi"] }
[dependencies]
reedline = "0.30"
crossterm = { version = "0.28", features = ["use-dev-tty"] }
nom = "7.1"
walkdir = "2"
globset = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
dirs = "5.0"
reqwest = { version = "0.11", features = ["json", "blocking", "multipart"] }
tokio = { version = "1.35", features = ["full"] }
# custom_styling: measure cell width with ANSI escapes stripped, so ANSI_COLOR
# output lines up under --table-style (the default renderer already does this)
comfy-table = { version = "7.0", features = ["custom_styling"] }
csv = "1.3"
ratatui = "0.29"
tui-input = { version = "0.11", features = ["crossterm"] }
anyhow = "1.0"
clap = "4.0"
regex = "1.0"
fuzzy-matcher = "0.3"
chrono = { version = "0.4", features = ["serde"] }
syntect = "5.0"
arboard = "3.2"
md5 = "0.7"
sha1 = "0.10"
sha2 = "0.10"
toml = "0.8"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "time", "local-time"] }
lazy_static = "1.4"
once_cell = "1.19"
rand = "0.8"
uuid = { version = "1.6", features = ["v4"] }
fxhash = "0.2"
num-bigint = "0.4"
num-traits = "0.2"
ahash = "0.8"
base64 = "0.22"
hex = "0.4"
figlet-rs = "0.1"
redis = { version = "0.23", optional = true }
rmp-serde = "1.1"
serde_yaml = "0.9"
unicode-width = "0.1"
# System tables (processes(), and the family to follow). Optional so a build
# can drop the OS-inspection dependencies entirely.
sysinfo = { version = "0.32", optional = true }
# sockets(): the OS's own socket tables with owning pids - GetExtendedTcpTable
# on Windows, netlink sock_diag plus /proc/*/fd on Linux, libproc on macOS.
# No name resolution anywhere, which is what makes `netstat -a` slow.
netstat2 = { version = "0.11", optional = true }
[features]
default = ["redis-cache", "system-tables"]
redis-cache = ["dep:redis"]
# `processes()`, `sockets()` and friends: OS inspection as table generators.
system-tables = ["dep:sysinfo", "dep:netstat2"]
[dev-dependencies]
tempfile = "3.8"
criterion = "0.5"
serial_test = "3"
# Explicitly specify binaries (no auto-discovery)
[[bin]]
name = "sql-cli"
path = "src/main.rs"
[[bin]]
name = "sql-cli-chart"
path = "src/chart_main.rs"
[[bin]]
name = "action_debugger"
path = "src/bin/action_debugger.rs"
[[bin]]
name = "action_logger"
path = "src/bin/action_logger.rs"
[[bin]]
name = "dataview_debug"
path = "src/bin/dataview_debug.rs"
# Single test harness containing all tests as modules
[[test]]
name = "integration"
path = "tests/main.rs"
[[bench]]
name = "where_evaluation"
harness = false
[profile.dev]
opt-level = 0 # No optimization for debugging
debug = true # Include debug symbols
debug-assertions = true
overflow-checks = true
[profile.test]
opt-level = 0 # No optimization for fastest build
debug = 1 # Minimal debug info for faster builds
lto = false # Disable LTO for faster linking
codegen-units = 256 # Maximum parallelism for faster builds
incremental = true # Enable incremental compilation
[profile.release]
opt-level = "z" # Optimize for size
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce parallel codegen for better optimization
strip = true # Strip symbols