-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathCargo.toml
More file actions
90 lines (81 loc) · 3.91 KB
/
Cargo.toml
File metadata and controls
90 lines (81 loc) · 3.91 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
[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 = "26.2.1"
edition = "2024"
[lib]
name = "chdig"
crate-type = ["staticlib", "lib"]
path = "src/lib.rs"
[[bin]]
name = "chdig"
path = "src/main.rs"
[features]
default = ["tls"]
tls = ["clickhouse-rs/tls-rustls"]
tokio-console = ["dep:console-subscriber", "tokio/tracing"]
[patch.crates-io]
cursive = { git = "https://github.com/azat-rust/cursive", branch = "chdig-next" }
cursive_core = { git = "https://github.com/azat-rust/cursive", branch = "chdig-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"] }
strfmt = { version = "*", default-features = false }
fuzzy-matcher = { version = "*", default-features = false }
# 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_json = { version = "*", default-features = false, features = ["std"] }
serde_yaml = { version = "*", default-features = false }
quick-xml = { version = "*", features = ["serialize"] }
percent-encoding = { version = "*", default-features = false }
regex = { version = "*", default-features = false, features = ["std"] }
# CLI
clap = { version = "*", default-features = false, features = ["derive", "env", "help", "usage", "std", "color", "error-context", "suggestions"] }
clap_complete = { version = "*", default-features = false }
# UI
cursive = { version = "*", default-features = false, features = ["crossterm-backend"] }
cursive-syntect = { version = "*", default-features = true }
unicode-width = "0.1"
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"] }
arboard = { version = "*", default-features = false }
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"] }
console-subscriber = { version = "*", default-features = false, optional = true }
# Flamegraphs
flamelens = { git = "https://github.com/ys-l/flamelens", branch = "main", default-features = false }
ratatui = { version = "0.29.0", features = ["unstable-rendered-line-info"] }
# Should **only** with the flamelens, since cursive re-export it, while flamelens does not
crossterm = { version = "0.28.1", features = ["use-dev-tty"] }
# Sharing
aes-gcm = { version = "0.10", default-features = false, features = ["aes", "alloc"] }
rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] }
base64 = { version = "0.22", default-features = false, features = ["std"] }
[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"
uninlined_format_args = "allow"
[lints.rust]
elided_lifetimes_in_paths = "deny"