File tree 6 files changed +432
-189
lines changed
6 files changed +432
-189
lines changed Original file line number Diff line number Diff line change 2
2
Cargo.lock
3
3
* .tar.gz
4
4
* .so
5
- * .h
5
+ chdb .h
6
6
var
7
7
udf
8
8
* .parquet
Original file line number Diff line number Diff line change 3
3
[ ![ Rust] ( https://github.com/chdb-io/chdb-rust/actions/workflows/rust.yml/badge.svg )] ( https://github.com/chdb-io/chdb-rust/actions/workflows/rust.yml )
4
4
5
5
# chdb-rust <img src =" https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Rust_programming_language_black_logo.svg/1024px-Rust_programming_language_black_logo.svg.png " height =20 />
6
+
6
7
Experimental [ chDB] ( https://github.com/chdb-io/chdb ) FFI bindings for Rust
7
8
8
- ### Status
9
+ ## Status
9
10
10
11
- Experimental, unstable, subject to changes
11
- - Requires [ ` libchdb ` ] ( https://github.com/chdb-io/chdb ) on the system
12
+ - Requires [ ` libchdb ` ] ( https://github.com/chdb-io/chdb ) on the system. You can install the compatible version from
13
+ ` install_libchdb.sh `
14
+
15
+ ## Usage
16
+
17
+ ### Install libchdb
18
+
19
+ You can install it system-wide
20
+
21
+ ``` bash
22
+ ./update_libchdb.sh --global
23
+ ```
24
+
25
+ or use it in a local directory
26
+
27
+ ``` bash
28
+ ./update_libchdb.sh --local
29
+ ```
30
+
31
+ ### Build
12
32
13
- #### Build binding
14
33
``` bash
15
- ./update_libchdb.sh
16
34
RUST_BACKTRACE=full cargo build --verbose
35
+
17
36
```
18
37
19
38
### Run tests
39
+
20
40
` cargo test `
21
41
22
42
### Examples
43
+
23
44
See ` tests ` directory.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ fn main() {
16
16
let bindings = bindgen:: Builder :: default ( )
17
17
// The input header we would like to generate
18
18
// bindings for.
19
- . header ( "chdb .h" )
19
+ . header ( "wrapper .h" )
20
20
// Tell cargo to invalidate the built crate whenever any of the
21
21
// included header files changed.
22
22
. parse_callbacks ( Box :: new ( bindgen:: CargoCallbacks :: new ( ) ) )
You can’t perform that action at this time.
0 commit comments