Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
97 lines (87 loc) · 3.9 KB
/
Copy pathCargo.toml
File metadata and controls
97 lines (87 loc) · 3.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
[package]
name = "ducklocal"
version = "0.2.2"
edition = "2021"
description = "A local-first workspace for querying and exploring your data, built natively on DuckDB"
license = "Apache-2.0"
repository = "https://github.com/JetSquirrel/DuckLocal"
homepage = "https://github.com/JetSquirrel/DuckLocal"
readme = "README.md"
keywords = ["duckdb", "sql", "parquet", "csv", "analytics"]
categories = ["database", "gui"]
# The Quick Look preview's engine lives beside the app, sharing its lockfile
# and build cache; a plain `cargo build` still builds only the app.
[workspace]
members = ["quicklook"]
[dependencies]
# The UI toolkit comes from one pinned revision of its repository; mixing the
# crates.io release with the Git one would put two incompatible copies of
# `gpui-base` in the build.
# `tree-sitter-sql`: the SQL editor and the SQL in `.dash` heredocs are the only
# code DuckLocal highlights, so it links that one grammar rather than the set.
gpui-kit = { git = "https://github.com/longbridge/gpui-kit", rev = "0c830f4d257e69fdd17200650533ab4ca9a40cc0", features = ["tree-sitter-sql"] }
duckdb = { version = "1", features = ["bundled", "json", "parquet"] }
calamine = { version = "0.36", features = ["dates"] }
smol = "2"
anyhow = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sqlformat = "0.3"
lsp-types = "0.97"
lsp-server = "0.10"
directories = "6"
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
ureq = { version = "3", default-features = false, features = ["rustls"] }
hmac = "0.12"
sha2 = "0.10"
getrandom = "0.3"
# Map tiles: the same `image` GPUI decodes with, only the formats tile
# servers send.
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
quick-xml = { version = "0.36", features = ["serialize"] }
unicode-width = "0.2"
# Profiler: every macro is a no-op and nothing is compiled in unless a
# `hotpath*` feature is on (`cargo run --release --features hotpath,hotpath-alloc`).
hotpath = "0.28"
[features]
hotpath = ["hotpath/hotpath"]
hotpath-alloc = ["hotpath/hotpath-alloc"]
hotpath-cpu = ["hotpath/hotpath-cpu"]
# `ducklocal __scroll-bench`: scroll the results grid in a real window and
# report GPUI's own frame timings. Never part of a release build.
scroll-bench = []
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.61", features = ["Win32_Storage_FileSystem", "Win32_System_Console"] }
[build-dependencies]
# Also supports cross-compiling to Windows; resources are required, not optional.
embed-resource = "3.0.11"
[dev-dependencies]
rust_xlsxwriter = "0.99"
# The DuckDB fixtures are kept gzipped: a database file is mostly empty
# blocks, megabytes that compress to kilobytes. Already in the lock file.
flate2 = "1"
# Same release tag as the build dependency (see above); the extra feature only
# joins the test build, where `gpui_kit::test` and `#[gpui_kit::test]` live.
gpui-kit = { git = "https://github.com/longbridge/gpui-kit", rev = "0c830f4d257e69fdd17200650533ab4ca9a40cc0", features = ["test-support"] }
# Fast over small. The opt-level reaches DuckDB's C++ too: libduckdb-sys
# builds it with the `cc` crate, which passes Cargo's level on to the
# compiler, so "z" meant `-Oz` for every scan, filter and aggregate loop in
# the engine, and for gpui's layout and text shaping. The binary is larger;
# queries and frames are faster.
[profile.release]
opt-level = 3
lto = true # Link-time optimization
strip = true # Strip symbols
panic = "abort" # Smaller panic handling
codegen-units = 1 # Better optimization
# Optional smaller distribution, without compiling DuckDB's hot C++ loops
# for size. The normal release remains the performance-oriented default.
[profile.compact]
inherits = "release"
opt-level = "s"
[profile.compact.package.libduckdb-sys]
opt-level = 3
[profile.dev.package."*"]
opt-level = 3