-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathCargo.toml
More file actions
102 lines (87 loc) · 3.47 KB
/
Copy pathCargo.toml
File metadata and controls
102 lines (87 loc) · 3.47 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
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package]
name = "kite_sql"
version = "0.3.0"
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"]
[[bin]]
name = "kitesql-shell"
path = "src/bin/shell.rs"
required-features = ["rocksdb", "shell"]
[lib]
doctest = false
crate-type = ["cdylib", "rlib"]
[features]
default = ["time", "macros", "parser", "rocksdb"]
time = ["dep:chrono"]
copy = ["dep:csv"]
decimal = ["dep:rust_decimal"]
macros = []
orm = ["macros"]
parser = ["dep:sqlparser"]
rocksdb = ["dep:rocksdb"]
unsafe_txdb_checkpoint = ["rocksdb", "dep:librocksdb-sys"]
lmdb = ["dep:lmdb", "dep:lmdb-sys"]
pprof = ["pprof/criterion", "pprof/flamegraph"]
python = ["parser", "dep:pyo3"]
shell = ["parser", "dep:comfy-table", "dep:rustyline"]
wasm = [
"dep:js-sys",
"dep:wasm-bindgen",
"parser",
]
[[bench]]
name = "query_bench"
path = "benchmarks/query_benchmark.rs"
harness = false
required-features = ["pprof"]
[dependencies]
bumpalo = { version = "3", default-features = false, features = ["collections"] }
ordered-float = { version = "4" }
paste = { version = "1" }
kite_sql_serde_macros = { version = "0.2.1", path = "kite_sql_serde_macros" }
# Optional dependencies for features
comfy-table = { version = "7", default-features = false, optional = true }
chrono = { version = "0.4", optional = true }
csv = { version = "1", optional = true }
pyo3 = { version = "0.23", features = ["auto-initialize"], optional = true }
rust_decimal = { version = "1", default-features = false, features = ["std"], optional = true }
sqlparser = { version = "0.61", default-features = false, features = ["std"], 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]
# Optional dependencies for features
librocksdb-sys = { version = "0.17.1", optional = true }
lmdb = { version = "0.8.0", optional = true }
lmdb-sys = { version = "0.8.0", optional = true }
rocksdb = { version = "0.23", optional = true, default-features = false, features = ["bindgen-runtime"] }
rustyline = { version = "14", default-features = false, optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2.106", optional = true }
js-sys = { version = "0.3.83", optional = true }
[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