Home

Awesome

TDengine rust bindings

It's a rust bindings project for TDengine

AND it's based on OUTDATED tdengine-connector, thanks for @tidyjiang8's prior work.

Dependencies

How to use

The rust binding file of taos.h already generated, but you can try it with

cargo +nightly build

Then you find generated bindings.rs

find . -name "*.rs"

Copy to src folder

cp /path/to/bindings.rs src/

Run example demo to prepare demo data

NOTE. demo will drop database 'demo' and create a new one.

cargo +nightly run --example demo

Then run example subscribe to test demo subscriber and check outputs

cargo +nightly run --example subscribe

TDegnine API coverage

Platform coverage

This binding has only been tested in following platforms

let me know if it's running well in your platform or just edit this list.

Contribution

We should keep track of TDengine latest c interfaces and support as more interfaces as we need.

License

Keep same with Tdengine.