-
Notifications
You must be signed in to change notification settings - Fork 46
/
Cargo.toml
149 lines (131 loc) · 3.77 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
workspace = { members = ["parquet-lru", "tonbo_macros"] }
[package]
description = "An embedded persistent KV database in Rust."
documentation = "https://docs.rs/tonbo"
edition = "2021"
license = "Apache-2.0"
name = "tonbo"
readme = "README.md"
resolver = "2"
version = "0.2.0"
[package.metadata]
msrv = "1.79.0"
[features]
aws = ["fusio-dispatch/aws", "fusio/aws"]
bench = ["redb", "rocksdb", "sled"]
bytes = ["dep:bytes"]
datafusion = ["dep:async-trait", "dep:datafusion"]
default = ["aws", "bytes", "tokio", "tokio-http"]
load_tbl = []
object-store = ["fusio/object_store"]
opfs = [
"dep:wasm-bindgen-futures",
"fusio-dispatch/opfs",
"fusio-parquet/web",
"fusio/opfs",
]
redb = ["dep:redb"]
rocksdb = ["dep:rocksdb"]
sled = ["dep:sled"]
tokio = [
"fusio-dispatch/tokio",
"fusio-parquet/tokio",
"fusio/tokio",
"parquet/default",
"tokio/fs",
]
tokio-http = ["fusio/tokio-http"]
wasm = ["aws", "bytes", "opfs", "wasm-http"]
wasm-http = ["fusio/wasm-http"]
[[example]]
name = "declare"
required-features = ["bytes", "tokio"]
[[example]]
name = "datafusion"
required-features = ["datafusion"]
[[bench]]
harness = false
name = "write_bench"
required-features = ["bench"]
[[bench]]
harness = false
name = "read_bench"
required-features = ["bench"]
[[bench]]
harness = false
name = "common"
required-features = ["bench"]
[[bench]]
harness = false
name = "writes"
path = "benches/criterion/writes.rs"
required-features = ["sled"]
[dependencies]
arrow = "53"
async-lock = "3"
async-stream = "0.3"
async-trait = { version = "0.1", optional = true }
bytes = { version = "1.7", optional = true }
crc32fast = "1"
crossbeam-skiplist = "0.1"
datafusion = { version = "42.2.0", optional = true }
flume = { version = "0.11", features = ["async"] }
fusio = { git = "https://github.com/tonbo-io/fusio.git", rev = "216eb446fb0a0c6e5e85bfac51a6f6ed8e5ed606", package = "fusio", version = "0.3.3", features = [
"dyn",
"fs",
] }
fusio-dispatch = { git = "https://github.com/tonbo-io/fusio.git", rev = "216eb446fb0a0c6e5e85bfac51a6f6ed8e5ed606", package = "fusio-dispatch", version = "0.2.1" }
fusio-parquet = { git = "https://github.com/tonbo-io/fusio.git", rev = "216eb446fb0a0c6e5e85bfac51a6f6ed8e5ed606", package = "fusio-parquet", version = "0.2.1" }
futures-core = "0.3"
futures-io = "0.3"
futures-util = "0.3"
lockable = "0.1.1"
once_cell = "1"
parquet = { version = "53", default-features = false, features = [
"async",
"base64",
"brotli",
"flate2",
"lz4",
"snap",
] }
parquet-lru = { version = "0.2.0", path = "parquet-lru" }
pin-project-lite = "0.2"
regex = "1"
thiserror = "2.0.3"
tokio = { version = "1", features = ["io-util"], default-features = false }
tokio-util = { version = "0.7" }
tonbo_macros = { version = "0.2.0", path = "tonbo_macros" }
tracing = "0.1"
ulid = { version = "1", features = ["serde"] }
# Only used for benchmarks
log = "0.4.22"
redb = { version = "2", optional = true }
rocksdb = { version = "0.22", optional = true }
sled = { version = "0.34", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.95"
wasm-bindgen-futures = { version = "0.4.45", optional = true }
[dev-dependencies]
bincode = "1"
fastrand = "2"
futures = { version = "0.3" }
serde = "1"
tempfile = "3"
trybuild = "1.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
comfy-table = "7"
criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
mimalloc = "0.1"
tokio = { version = "1", features = ["full"] }
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen = "0.2.95"
wasm-bindgen-test = "0.3.9"
[target.'cfg(unix)'.dev-dependencies]
pprof = { version = "0.14", features = ["criterion", "flamegraph"] }
[profile.release]
codegen-units = 1
lto = "thin"
[profile.bench]
debug = true
inherits = "release"