{"id":13529678,"url":"https://github.com/songtianyi/tdengine-rust-bindings","last_synced_at":"2026-01-16T22:51:13.686Z","repository":{"id":42691863,"uuid":"306210713","full_name":"songtianyi/tdengine-rust-bindings","owner":"songtianyi","description":"Rust binding for TDengine","archived":false,"fork":false,"pushed_at":"2022-04-13T16:22:05.000Z","size":28,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-02T07:10:38.943Z","etag":null,"topics":["binding-generator","bindings","rust","tdengine","tdengine-rust-bindings"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/songtianyi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-22T03:20:27.000Z","updated_at":"2022-06-21T04:10:12.000Z","dependencies_parsed_at":"2022-08-27T04:21:18.460Z","dependency_job_id":null,"html_url":"https://github.com/songtianyi/tdengine-rust-bindings","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songtianyi%2Ftdengine-rust-bindings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songtianyi%2Ftdengine-rust-bindings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songtianyi%2Ftdengine-rust-bindings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songtianyi%2Ftdengine-rust-bindings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/songtianyi","download_url":"https://codeload.github.com/songtianyi/tdengine-rust-bindings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222748063,"owners_count":17031894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binding-generator","bindings","rust","tdengine","tdengine-rust-bindings"],"created_at":"2024-08-01T07:00:38.468Z","updated_at":"2026-01-16T22:51:13.680Z","avatar_url":"https://github.com/songtianyi.png","language":"Rust","funding_links":[],"categories":["Connector"],"sub_categories":[],"readme":"# TDengine rust bindings\n\nIt's a rust bindings project for [TDengine](https://github.com/taosdata/TDengine)\n\nAND it's based on OUTDATED [tdengine-connector](https://github.com/tidyjiang8/tdengine-connector), thanks for [@tidyjiang8](https://github.com/tidyjiang8)'s prior work.\n\n## Dependencies\n- [Tdengine](https://www.taosdata.com/en/getting-started/)\n- [Rust](https://www.rust-lang.org/learn/get-started)\n- clang 3.9+\n- cargo\n\n## How to use \nThe rust binding file of taos.h already generated, but you can try it with\n```\ncargo +nightly build\n```\nThen you find generated `bindings.rs`\n```\nfind . -name \"*.rs\"\n```\nCopy to src folder\n```\ncp /path/to/bindings.rs src/\n```\nRun example `demo` to prepare demo data\n\u003e NOTE. `demo` will drop database 'demo' and create a new one.\n```\ncargo +nightly run --example demo\n```\nThen run example `subscribe` to test demo subscriber and check outputs\n```\ncargo +nightly run --example subscribe\n```\n\n## TDegnine API coverage\n- taos_init\n- taos_connect\n- taos_close\n- taos_query\n   - taos_free_result\n- taos_subscribe (callback function not support yet)\n- taos_unsubscribe\n- taos_consume\n  - taos_fetch_fields\n  - taos_field_count\n  - taos_fetch_row\n  - taos_errstr\n  - taos_errno\n\n\n## Platform coverage\nThis binding has only been tested in following platforms\n\n- CentOS-7 (kernel-3.10.0-957.27.2.el7.x86_64)\n\nlet me know if it's running well in your platform or just edit this list.\n\n## Contribution\nWe should keep track of TDengine latest c interfaces and support as more interfaces as we need.\n\n\n## License\nKeep same with [Tdengine](https://www.taosdata.com/en/getting-started/).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongtianyi%2Ftdengine-rust-bindings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsongtianyi%2Ftdengine-rust-bindings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongtianyi%2Ftdengine-rust-bindings/lists"}