-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathCargo.toml
More file actions
122 lines (106 loc) · 4.46 KB
/
Cargo.toml
File metadata and controls
122 lines (106 loc) · 4.46 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package]
name = "kite_sql"
version = "0.2.1"
edition = "2021"
build = "build.rs"
authors = ["Kould <kould2333@gmail.com>", "Xwg <loloxwg@gmail.com>"]
description = "SQL as a Function for Rust"
documentation = "https://docs.rs/kite_sql/latest/kite_sql/"
license = "Apache-2.0"
repository = "https://github.com/KipData/KiteSQL"
readme = "README.md"
keywords = ["sql", "sqlite", "database", "mysql"]
categories = ["development-tools", "database"]
default-run = "kite_sql"
[[bin]]
name = "kite_sql"
path = "src/bin/server.rs"
required-features = ["net", "rocksdb"]
[lib]
doctest = false
crate-type = ["cdylib", "rlib"]
[features]
default = ["macros", "rocksdb"]
macros = []
orm = []
rocksdb = ["dep:rocksdb"]
unsafe_txdb_checkpoint = ["rocksdb", "dep:librocksdb-sys"]
lmdb = ["dep:lmdb", "dep:lmdb-sys"]
net = ["rocksdb", "dep:pgwire", "dep:async-trait", "dep:clap", "dep:env_logger", "dep:futures", "dep:log", "dep:tokio"]
pprof = ["pprof/criterion", "pprof/flamegraph"]
python = ["dep:pyo3"]
[[bench]]
name = "query_bench"
path = "benchmarks/query_benchmark.rs"
harness = false
required-features = ["pprof"]
[dependencies]
ahash = { version = "0.8" }
bincode = { version = "1" }
bumpalo = { version = "3", features = ["allocator-api2", "collections", "std"] }
byteorder = { version = "1" }
chrono = { version = "0.4" }
comfy-table = { version = "7", default-features = false }
csv = { version = "1" }
fixedbitset = { version = "0.4" }
itertools = { version = "0.12" }
ordered-float = { version = "4", features = ["serde"] }
paste = { version = "1" }
parking_lot = { version = "0.12", features = ["arc_lock"] }
pyo3 = { version = "0.23", features = ["auto-initialize"], optional = true }
recursive = { version = "0.1" }
regex = { version = "1" }
rust_decimal = { version = "1" }
serde = { version = "1", features = ["derive", "rc"] }
kite_sql_serde_macros = { version = "0.2.0", path = "kite_sql_serde_macros" }
siphasher = { version = "1", features = ["serde"] }
sqlparser = { version = "0.61", features = ["serde"] }
thiserror = { version = "1" }
typetag = { version = "0.2" }
ulid = { version = "1", features = ["serde"] }
# Feature: net
async-trait = { version = "0.1", optional = true }
clap = { version = "4.5", features = ["derive"], optional = true }
env_logger = { version = "0.11", optional = true }
futures = { version = "0.3", optional = true }
log = { version = "0.4", optional = true }
pgwire = { version = "0.28.0", optional = true }
tokio = { version = "1.36", features = ["full"], optional = true }
[target.'cfg(unix)'.dev-dependencies]
pprof = { version = "0.15", features = ["flamegraph", "criterion"] }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
indicatif = { version = "0.17" }
tempfile = { version = "3.10" }
# Benchmark
sqlite = { version = "0.34" }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
rocksdb = { version = "0.23", optional = true }
librocksdb-sys = { version = "0.17.1", optional = true }
lmdb = { version = "0.8.0", optional = true }
lmdb-sys = { version = "0.8.0", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2.106" }
web-sys = { version = "0.3.83", features = [
"Storage",
"Window",
] }
base64 = { version = "0.21" }
getrandom = { version = "0.2", features = ["js"] }
getrandom_03 = { package = "getrandom", version = "0.3", features = ["wasm_js"] }
js-sys = { version = "0.3.83" }
serde-wasm-bindgen = { version = "0.6.5" }
once_cell = { version = "1" }
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3.56"
[workspace]
members = [
"tests/sqllogictest",
"tests/macros-test",
"kite_sql_serde_macros",
"tpcc"]
[profile.release]
lto = true
[package.metadata.wasm-pack.profile.release]
wasm-opt = false