Skip to content

Commit e9a8e84

Browse files
committed
rename lib name to iotdb
1 parent c093174 commit e9a8e84

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

Cargo.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,24 @@
1515

1616
[package]
1717
name = "iotdb-client-rs"
18-
version = "0.3.4"
18+
version = "0.3.5"
1919
authors = ["Mark Liu <[email protected]>"]
2020
edition = "2021"
2121
license = "Apache-2.0"
2222
readme = "README.md"
2323
description = "Rust client library for Apache IoTDB"
2424
keywords = ["iotdb", "iotdb-client-rust", "apache-iotdb"]
2525
repository = "https://github.com/manlge/iotdb-client-rs.git"
26-
license-file = "LICENSE"
2726
categories = ["database"]
2827
documentation = "https://docs.rs/iotdb-client-rs"
2928

30-
[dependencies]
31-
thrift="0.15.0"
29+
[lib]
30+
name = "iotdb"
31+
32+
[dev-dependencies]
3233
chrono="0.4.19"
3334
prettytable-rs = "0.8.0"
35+
36+
[dependencies]
37+
thrift="0.15.0"
3438
permutation = "0.2.5"

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,20 @@ Put this in your `Cargo.toml`:
6161

6262
```toml
6363
[dependencies]
64-
iotdb-client-rs="0.3.4"
64+
iotdb-client-rs="0.3.5"
6565
chrono="0.4.19"
6666
prettytable-rs="0.8.0"
6767
```
6868
## Example
6969

70-
```rust
7170
use std::vec;
7271

7372
use chrono;
7473

7574
use chrono::Local;
76-
use iotdb_client_rs::client::remote::{Config, RpcSession};
77-
use iotdb_client_rs::client::{MeasurementSchema, Result, RowRecord, Session, Tablet, Value};
78-
use iotdb_client_rs::protocal::{TSCompressionType, TSDataType, TSEncoding};
75+
use iotdb::client::remote::{Config, RpcSession};
76+
use iotdb::client::{MeasurementSchema, Result, RowRecord, Session, Tablet, Value};
77+
use iotdb::protocal::{TSCompressionType, TSDataType, TSEncoding};
7978
use prettytable::{cell, Row, Table};
8079

8180
fn main() {
@@ -402,4 +401,3 @@ fn create_tablet(row_count: i32, start_timestamp: i64) -> Tablet {
402401
});
403402
tablet
404403
}
405-
```

examples/session_example.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ use std::vec;
2222
use chrono;
2323

2424
use chrono::Local;
25-
use iotdb_client_rs::client::remote::{Config, RpcSession};
26-
use iotdb_client_rs::client::{MeasurementSchema, Result, RowRecord, Session, Tablet, Value};
27-
use iotdb_client_rs::protocal::{TSCompressionType, TSDataType, TSEncoding};
25+
use iotdb::client::remote::{Config, RpcSession};
26+
use iotdb::client::{MeasurementSchema, Result, RowRecord, Session, Tablet, Value};
27+
use iotdb::protocal::{TSCompressionType, TSDataType, TSEncoding};
2828
use prettytable::{cell, Row, Table};
2929

3030
fn main() {

0 commit comments

Comments
 (0)