Skip to content

Commit faff2de

Browse files
committed
Rename crate to iotdb-client-rust (iotdb-client is taken on crates.io); keep iotdb_client as the lib import name
1 parent 9aa6064 commit faff2de

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818
[package]
19-
name = "iotdb-client"
19+
name = "iotdb-client-rust"
2020
version = "0.1.0"
2121
edition = "2021"
2222
rust-version = "1.75"
@@ -26,6 +26,11 @@ repository = "https://github.com/apache/iotdb-client-rust"
2626
keywords = ["iotdb", "timeseries", "database", "client"]
2727
categories = ["database"]
2828

29+
# Import name stays `iotdb_client` (the package name carries the -rust suffix
30+
# only because `iotdb-client` is taken on crates.io).
31+
[lib]
32+
name = "iotdb_client"
33+
2934
[dependencies]
3035
thrift = "0.23"
3136
byteorder = "1.5"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Once published to crates.io:
2424

2525
```toml
2626
[dependencies]
27-
iotdb-client = "0.1"
27+
iotdb-client-rust = "0.1"
2828
```
2929

3030
Until then, use a git dependency:
@@ -186,7 +186,7 @@ It must match the **server** setting `dn_rpc_thrift_compression_enable` (default
186186
**TLS** is behind the `tls` cargo feature (platform-native TLS via [`native-tls`](https://crates.io/crates/native-tls)):
187187

188188
```toml
189-
iotdb-client = { version = "0.1", features = ["tls"] }
189+
iotdb-client-rust = { version = "0.1", features = ["tls"] }
190190
```
191191

192192
```rust

README_ZH.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
```toml
2626
[dependencies]
27-
iotdb-client = "0.1"
27+
iotdb-client-rust = "0.1"
2828
```
2929

3030
在此之前,可使用 git 依赖:
@@ -186,7 +186,7 @@ let config = SessionConfig { enable_rpc_compression: true, ..Default::default()
186186
**TLS** 位于 `tls` cargo feature 之后(基于 [`native-tls`](https://crates.io/crates/native-tls) 的平台原生 TLS):
187187

188188
```toml
189-
iotdb-client = { version = "0.1", features = ["tls"] }
189+
iotdb-client-rust = { version = "0.1", features = ["tls"] }
190190
```
191191

192192
```rust

0 commit comments

Comments
 (0)