File tree Expand file tree Collapse file tree 6 files changed +425
-189
lines changed Expand file tree Collapse file tree 6 files changed +425
-189
lines changed Original file line number Diff line number Diff line change 22Cargo.lock
33* .tar.gz
44* .so
5- * .h
5+ chdb .h
66var
77udf
88* .parquet
Original file line number Diff line number Diff line change 33[ ![ 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 )
44
55# 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+
67Experimental [ chDB] ( https://github.com/chdb-io/chdb ) FFI bindings for Rust
78
8- ### Status
9+ ## Status
910
1011- 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
1232
13- #### Build binding
1433``` bash
15- ./update_libchdb.sh
1634RUST_BACKTRACE=full cargo build --verbose
35+
1736```
1837
1938### Run tests
39+
2040` cargo test `
2141
2242### Examples
43+
2344See ` tests ` directory.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ fn main() {
1616 let bindings = bindgen:: Builder :: default ( )
1717 // The input header we would like to generate
1818 // bindings for.
19- . header ( "chdb .h" )
19+ . header ( "wrapper .h" )
2020 // Tell cargo to invalidate the built crate whenever any of the
2121 // included header files changed.
2222 . parse_callbacks ( Box :: new ( bindgen:: CargoCallbacks :: new ( ) ) )
You can’t perform that action at this time.
0 commit comments