使用 Rust 连接器建立连接
创建项目
cargo new --bin cloud-example
增加依赖
在 Cargo.toml
文件中增加下面的依赖:
Cargo.toml
[package]
name = "cloud-example"
version = "0.1.0"
edition = "2021"
[dependencies]
taos = { version = "*", default-features = false, features = ["ws", "ws-rustls"] }
tokio = { version = "1", features = ["full"]}
anyhow = "1.0.0"