-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCargo.toml
More file actions
77 lines (66 loc) · 2.31 KB
/
Copy pathCargo.toml
File metadata and controls
77 lines (66 loc) · 2.31 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
[package]
name = "chdb-rust"
version = "1.4.0"
edition = "2021"
authors = ["Auxten"]
description = "chDB FFI bindings for Rust(Experimental)"
homepage = "https://github.com/chdb-io/chdb-rust"
repository = "https://github.com/chdb-io/chdb-rust"
license = "Apache-2.0"
readme = "README.md"
keywords = ["clickhouse", "chdb", "database", "embedded", "analytics"]
[dependencies]
arrow = { version = "59", optional = true, features = ["ffi"] }
thiserror = "1"
[features]
default = ["arrow"]
# Apache Arrow bulk insert / stream registration (RecordBatch, FFI wrappers).
arrow = ["dep:arrow"]
# By default, we link dynamically.
# Users can opt-in to static linking with --features static
static = []
[build-dependencies]
bindgen = "0.70.1"
reqwest = { version = "0.11", features = ["blocking"] }
flate2 = "1.0"
tar = "0.4"
[dev-dependencies]
arrow = { version = "59", features = ["ffi"] }
tempdir = "0.3.7"
tempfile = "3"
[[example]]
name = "08_arrow_insert"
required-features = ["arrow"]
[[test]]
name = "arrow_insert"
required-features = ["arrow"]
[[test]]
name = "arrow_insert_bench"
required-features = ["arrow"]
[[test]]
name = "arrow_stream"
required-features = ["arrow"]
[[test]]
name = "arrow_stream_roundtrip"
required-features = ["arrow"]
[package.metadata.chdb]
# The chdb-core release this crate builds against. This is a chdb-core release
# number, not a ClickHouse one: X.Y is the ClickHouse minor line the release sits
# on and Z is chdb-core's own counter, so v26.7.0 carries some ClickHouse 26.7
# rather than a ClickHouse 26.7.0. The chdb-core release notes for the tag name
# the exact upstream build.
#
# The crate version above is unrelated — 1.4.0 is this crate's own numbering — so
# without this key there is no way to tell which engine a published version
# carries short of reading build.rs at the matching tag. Here it travels with the
# package, readable through `cargo metadata`, the .crate archive or the docs.rs
# source view; the crates.io API does not expose it.
#
# .github/scripts/check-engine-pin.sh keeps it in step with build.rs and
# update_libchdb.sh, which are what actually fetch the engine.
engine = "v26.7.0"
[package.metadata.docs.rs]
# docs.rs cannot download libchdb or link native libraries.
# Setting DOCS_RS env var tells build.rs to skip native build steps.
features = ["arrow"]
rustc-args = ["--cfg", "docsrs"]