This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
115 lines (95 loc) · 2.7 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[workspace.package]
version = "0.1.0"
authors = ["Databend Authors <[email protected]>"]
license = "Apache-2.0"
publish = false
edition = "2021"
[workspace]
resolver = "2"
members = [
# Common
"src/common/base",
"src/common/exception",
"src/common/io",
# Query
"src/query/ast",
]
[workspace.dependencies]
# databend maintains:
opendal = { version = "0.39", features = [
"layers-minitrace",
"layers-metrics",
"services-ipfs",
"services-moka",
"services-redis",
"trust-dns",
] }
ethnum = { version = "1.3.2" }
ordered-float = { version = "3.6.0", default-features = false }
# type helper
itertools = "0.10.5"
# future and async
futures = "0.3.24"
bytes = "1.5.0"
# error
anyhow = { version = "1.0.65" }
anyerror = { version = "=0.1.8" }
thiserror = { version = "1" }
# versioning
semver = "1.0.14"
# server
tonic = { version = "0.9.2", features = ["transport", "codegen", "prost", "tls-roots", "tls"] }
# serialization
prost = { version = "0.11.0" }
serde = { version = "1.0.164", features = ["derive", "rc"] }
serde_json = { version = "1.0.85", default-features = false, features = ["preserve_order"] }
# chrono
chrono = { version = "0.4.24", features = ["serde"] }
chrono-tz = { version = "0.6.3", features = ["serde"] }
# memory
tikv-jemalloc-ctl = { version = "0.5.0", features = ["use_std"] }
# runtime
tokio = { version = "1.26.0", features = ["full"] }
# backtrace
async-backtrace = "0.2.2"
# observability
logcall = "0.1.5"
log = { version = "0.4.19", features = ["serde", "kv_unstable_std"] }
minitrace = "0.5.1"
[profile.release]
debug = 1
lto = "thin"
overflow-checks = false
incremental = false
opt-level = "s"
# codegen-units = 1 # Reduce number of codegen units to increase optimizations.
[profile.bench]
debug = true
overflow-checks = false
[profile.dev]
split-debuginfo = "unpacked"
overflow-checks = false
# wait until https://github.com/rust-lang/rust/issues/100142 fixed
incremental = false
[profile.dev.package]
addr2line = { opt-level = 3 }
adler = { opt-level = 3 }
gimli = { opt-level = 3 }
miniz_oxide = { opt-level = 3 }
object = { opt-level = 3 }
rustc-demangle = { opt-level = 3 }
[profile.test]
opt-level = 0
debug = true
codegen-units = 16
lto = false
debug-assertions = true
overflow-checks = true
rpath = false
[patch.crates-io]
# If there are dependencies that need patching, they can be listed below.
metrics = { git = "https://github.com/datafuse-extras/metrics.git", rev = "fc2ecd1" }
opendal = { git = "https://github.com/apache/incubator-opendal", rev = "f02d627" }
# Crates from arrow-rs
arrow-schema = { git = "https://github.com/apache/arrow-rs", rev = "587250c" }
parquet = { git = "https://github.com/apache/arrow-rs", rev = "587250c" }