Files
turso/postgres/cli/Cargo.toml
themixednuts 31e1019d9b cli: detect Windows terminal themes
Query terminal background colors on Windows and fall back to the native console color table when ANSI responses are unavailable. Share color parsing across platforms, bound terminal reads, and restore console modes after detection. Cache the detected theme for the process so repeated lookups do not re-query the terminal.

Tests: cargo test --locked -p turso_cli config::terminal::tests -j1; cargo check --locked -p tursopg --tests
2026-08-11 05:07:30 -05:00

66 lines
2.0 KiB
TOML

[package]
name = "tursopg"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "tursopg — PostgreSQL-compatible micro database CLI"
[[bin]]
name = "tursopg"
path = "main.rs"
[dependencies]
turso_core = { workspace = true, default-features = true, features = [
"cli_only",
"conn_raw_api",
"fs",
"fts",
] }
turso_pg = { workspace = true }
turso_pg_server = { workspace = true }
anyhow.workspace = true
clap = { workspace = true, features = ["derive"] }
comfy-table = "7.1.4"
dirs = "5.0.1"
rustyline = { version = "15.0.0", default-features = true, features = ["derive"] }
syntect = { version = "5.3.0", default-features = false, features = ["default-fancy"] }
tracing = { workspace = true }
tracing-appender = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter"] }
nu-ansi-term = { version = "0.50.1", features = ["serde", "derive_serde_style"] }
toml = { version = "0.8.20", features = ["preserve_order"] }
schemars = { version = "0.8.22", features = ["preserve_order"] }
serde = { workspace = true, features = ["derive"] }
validator = { version = "0.20.0", features = ["derive"] }
toml_edit = { version = "0.22.24", features = ["serde"] }
serde_json = "1.0"
limbo_completion = { workspace = true, features = ["static"] }
cfg-if = { workspace = true }
ctrlc = "3.4.4"
libc = "0.2.172"
clap_complete = { version = "=4.5.47", features = ["unstable-dynamic"] }
itertools.workspace = true
mimalloc = { workspace = true, optional = true }
[target.'cfg(target_os = "windows")'.dependencies]
windows-sys = { workspace = true, features = [
"Win32_Foundation",
"Win32_Storage_FileSystem",
"Win32_System_Console",
"Win32_System_Pipes",
] }
[features]
default = ["io_uring", "mimalloc"]
io_uring = ["turso_core/io_uring"]
mimalloc = ["dep:mimalloc"]
[build-dependencies]
syntect = { version = "5.3.0", default-features = false, features = ["default-fancy"] }
include_dir = "0.7"
[lints]
workspace = true