Experimental chDB FFI bindings for Rust.
Full API Documentation - Complete Rust API reference on docs.rs
Experimental - This library is currently experimental, unstable, and subject to changes.
The library automatically downloads and manages libchdb dependencies during the build process.
Add chdb-rust to your Cargo.toml:
[dependencies]
chdb-rust = "1.1.0"
The library will automatically download the required libchdb binary during the build process.
cargo build
RUST_BACKTRACE=full cargo build --verbose
If you prefer to install libchdb manually instead of automatic download:
System-wide installation:
./update_libchdb.sh --global
Local directory installation:
./update_libchdb.sh --local
Run the test suite:
cargo test -- --test-threads=1
bash
cargo run --example <name>We welcome contributions! Here's how you can help:
Fork the repository and clone your fork
bash
git clone https://github.com/YOUR_USERNAME/chdb-rust.git
cd chdb-rust
Create a branch for your changes
bash
git checkout -b feature/your-feature-name
# or
git checkout -b fix/your-bug-fix
Make your changes and ensure they work
cargo testcargo fmt --checkRun clippy: cargo clippy
Commit your changes with clear, descriptive commit messages
bash
git commit -m "Add feature: description of what you did"
Push to your fork and open a Pull Request
bash
git push origin feature/your-feature-name
cargo fmt before committingFound a bug or have a feature request? Please open an issue on GitHub with: - A clear description of the problem or feature - Steps to reproduce (for bugs) - Expected vs actual behavior - Your environment (OS, Rust version, etc.)
Feel free to open a discussion or issue if you have questions about contributing!
$ claude mcp add chdb-rust \
-- python -m otcore.mcp_server <graph>