forked from azat/chdig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
87 lines (79 loc) · 3.67 KB
/
Cargo.toml
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
[package]
name = "chdig"
authors = ["Azat Khuzhin <[email protected]>"]
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 = "24.4.1"
edition = "2021"
[features]
default = ["flameshow", "tls"]
flameshow = ["dep:flameshow"]
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" }
[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:
# - rustls
# - no panic on broken protocol
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"] }
[dependencies.flameshow]
path = "contrib/flameshow"
optional = true
[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"