-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathCargo.toml
More file actions
99 lines (89 loc) · 4.25 KB
/
Cargo.toml
File metadata and controls
99 lines (89 loc) · 4.25 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
[package]
name = "chdig"
authors = ["Azat Khuzhin <a3at.mail@gmail.com>"]
homepage = "https://github.com/azat/chdig"
repository = "https://github.com/azat/chdig"
readme = "README.md"
description = "Dig into ClickHouse with TUI interface"
license = "MIT"
version = "25.4.1"
edition = "2021"
[lib]
name = "chdig"
path = "src/lib.rs"
[[bin]]
name = "chdig"
path = "src/main.rs"
[features]
default = ["tls"]
tls = ["clickhouse-rs/tls-rustls"]
# TODO: convert this into feature set, but I'm not sure that it is easy right now (see [1]).
# [1]: https://github.com/rust-lang/cargo/issues/1197
[target.'cfg(not(target_family = "windows"))'.dependencies]
cursive = { version = "*", default-features = false, features = ["termion-backend"] }
skim = "*"
[target.'cfg(target_family = "windows")'.dependencies]
# crossterm backend does not support Alt-<Key> bindings (interpret as just <Key>)
cursive = { version = "*", default-features = false, features = ["crossterm-backend"] }
[patch.crates-io]
cursive = { git = "https://github.com/azat-rust/cursive", branch = "next" }
cursive_core = { git = "https://github.com/azat-rust/cursive", branch = "next" }
# Ref: https://github.com/lotabout/tuikit/pull/51
tuikit = { git = "https://github.com/ClickHouse/tuikit.git", rev = "e1994c0e03ff02c49cf1471f0cc3cbf185ce0104" }
[dependencies]
# Basic
anyhow = { version = "*", default-features = false, features = ["std"] }
size = { version = "*", default-features = false, features = ["std"] }
tempfile = { version = "*", default-features = false }
url = { version = "*", default-features = false }
humantime = { version = "*", default-features = false }
backtrace = { version = "*", default-features = false, features = ["std"] }
futures = { version = "*", default-features = false, features = ["std"] }
# chrono/chrono-tz should match clickhouse-rs
chrono = { version = "0.4", default-features = false, features = ["std", "clock"] }
chrono-tz = { version = "0.8", default-features = false }
flexi_logger = { version = "0.27", default-features = false }
log = { version = "0.4", default-features = false }
futures-util = { version = "*", default-features = false }
semver = { version = "*", default-features = false }
serde = { version = "*", features = ["derive"] }
serde_yaml = { version = "*", default-features = false }
quick-xml = { version = "*", features = ["serialize"] }
urlencoding = { version = "*", default-features = false }
warp = { version = "*", default-features = false }
# CLI
clap = { version = "*", default-features = false, features = ["derive", "env", "help", "usage", "std", "color", "error-context", "suggestions"] }
clap_complete = { version = "*", default-features = false }
# UI
cursive_buffered_backend = { version = "0.6.1", default-features = false }
cursive-syntect = { version = "*", default-features = false, features = ["regex-onig"] }
unicode-width = "0.1"
# Patches:
# - Change focus - https://github.com/BonsaiDen/cursive_table_view/pull/40
cursive_table_view = { git = "https://github.com/azat-rust/cursive_table_view", branch = "next", default-features = false }
# Patches:
# - Fix for date format - https://github.com/deinstapel/cursive-flexi-logger-view/pull/13
cursive-flexi-logger-view = { git = "https://github.com/azat-rust/cursive-flexi-logger-view", branch = "next", default-features = false }
syntect = { version = "*", default-features = false, features = ["default-syntaxes", "default-themes"] }
#
# Drivers
#
# Patches:
# - https://github.com/suharev7/clickhouse-rs/pull/226 - Properly handle terminated connection by the server and fix CI
# - https://github.com/suharev7/clickhouse-rs/pull/227 - mTLS
clickhouse-rs = { git = "https://github.com/azat-rust/clickhouse-rs", branch = "next", default-features = false, features = ["tokio_io"] }
tokio = { version = "*", default-features = false, features = ["macros"] }
# Flamegraphs
flamelens = { version = "0.3.1", default-features = false }
ratatui = { version = "0.26.3", features = ["unstable-rendered-line-info"] }
crossterm = { version = "0.27.0", features = ["use-dev-tty"] }
[dev-dependencies]
pretty_assertions = { version= "*", default-features = false, features = ["alloc"] }
[profile.release]
# Too slow and does not worth it
lto = false
[lints.clippy]
needless_return = "allow"
type_complexity = "allow"
[lints.rust]
elided_lifetimes_in_paths = "deny"