libtaos - yet another TDengine connector for Rust
Thanks @songtianyi for libtdengine - a rust bindings project for TDengine.
It's an new design for TDengine rust client based on C interface or the REST API. It'll will provide Rust-like APIs and all rust things (like async/stream/iterators and others).
Dependencies
- Rust of course.
if you use the default features, it'll depend on:
- TDengine Client library and headers.
- clang because bindgen will requires the clang AST library.
Fetures
In-design features:
- API for both C interface
- REST API support by feature
rest
. - r2d2 Pool support by feature
r2d2
- Iterators for fields fetching
- Stream support
- Subscribe support
Build and test
test
will use default TDengine user and password on localhost (TDengine default).
Set variables if it's not default:
TEST_TAOS_IP
TEST_TAOS_PORT
TEST_TAOS_USER
TEST_TAOS_PASS
TEST_TAOS_DB
Usage
For default C-based client API, set in Cargo.toml
[]
= "*"
For r2d2 support:
[]
= { = "*", = ["r2d2"] }
For REST client:
[]
= { = "*", = ["rest"] }
There's a demo app in examples directory, looks like this:
// ...
async
Contribution
Welcome for all contributions.
License
Keep same with TDengine.