Rename crate to iotdb-client-rust (iotdb-client is taken on crates.io); keep iotdb_client as the lib import name
diff --git a/Cargo.toml b/Cargo.toml index 1399830..8d9b168 100644 --- a/Cargo.toml +++ b/Cargo.toml
@@ -16,7 +16,7 @@ # under the License. [package] -name = "iotdb-client" +name = "iotdb-client-rust" version = "0.1.0" edition = "2021" rust-version = "1.75" @@ -26,6 +26,11 @@ keywords = ["iotdb", "timeseries", "database", "client"] categories = ["database"] +# Import name stays `iotdb_client` (the package name carries the -rust suffix +# only because `iotdb-client` is taken on crates.io). +[lib] +name = "iotdb_client" + [dependencies] thrift = "0.23" byteorder = "1.5"
diff --git a/README.md b/README.md index 78ba579..ef06b58 100644 --- a/README.md +++ b/README.md
@@ -24,7 +24,7 @@ ```toml [dependencies] -iotdb-client = "0.1" +iotdb-client-rust = "0.1" ``` Until then, use a git dependency: @@ -186,7 +186,7 @@ **TLS** is behind the `tls` cargo feature (platform-native TLS via [`native-tls`](https://crates.io/crates/native-tls)): ```toml -iotdb-client = { version = "0.1", features = ["tls"] } +iotdb-client-rust = { version = "0.1", features = ["tls"] } ``` ```rust
diff --git a/README_ZH.md b/README_ZH.md index ae4b026..8161bf1 100644 --- a/README_ZH.md +++ b/README_ZH.md
@@ -24,7 +24,7 @@ ```toml [dependencies] -iotdb-client = "0.1" +iotdb-client-rust = "0.1" ``` 在此之前,可使用 git 依赖: @@ -186,7 +186,7 @@ **TLS** 位于 `tls` cargo feature 之后(基于 [`native-tls`](https://crates.io/crates/native-tls) 的平台原生 TLS): ```toml -iotdb-client = { version = "0.1", features = ["tls"] } +iotdb-client-rust = { version = "0.1", features = ["tls"] } ``` ```rust