-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
46 lines (41 loc) · 1.43 KB
/
Cargo.toml
File metadata and controls
46 lines (41 loc) · 1.43 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
[package]
name = "pg0"
version = "0.14.1"
edition = "2021"
description = "Zero-dependency CLI to run embedded PostgreSQL locally without installation"
license = "MIT"
repository = "https://github.com/vectorize-io/pg0"
[[bin]]
name = "pg0"
path = "src/main.rs"
[dependencies]
postgresql_embedded = { version = "0.20", default-features = false, features = ["blocking", "theseus", "rustls"] }
postgresql_extensions = { version = "0.20", default-features = false, features = ["blocking", "rustls", "portal-corp", "steampipe", "tensor-chord"] }
clap = { version = "4", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
dirs = "5"
thiserror = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
flate2 = "1"
tar = "0.4"
# ZIP extraction for the Windows PostgreSQL bundle, which theseus-rs ships as
# .zip (unlike every other platform's tar.gz). Only pulled in on Windows
# targets to avoid bloating other platforms' binaries.
[target.'cfg(windows)'.dependencies]
zip = { version = "2", default-features = false, features = ["deflate"] }
[build-dependencies]
# .deb files are ar archives wrapping a zstd-compressed tar; we crack them open
# at build time to extract libxml2.so.2 and the ICU 74 .so files so they can
# be bundled into the pg0 binary.
ar = "0.9"
zstd = "0.13"
tar = "0.4"
flate2 = "1"
sha2 = "0.10"
hex = "0.4"
[profile.release]
strip = true
lto = true
codegen-units = 1