Skip to content

Commit 912b399

Browse files
committed
Rename the crate from 'etcdv3' to 'etcd-client'.
1 parent c03945b commit 912b399

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[package]
2-
name = "etcdv3"
2+
name = "etcd-client"
33
version = "0.1.0"
4-
authors = ["The etcdv3 Authors <davidli2010@foxmail.com>"]
4+
authors = ["The etcd-client Authors <davidli2010@foxmail.com>"]
55
edition = "2018"
66
readme = "README.md"
77
license = "MIT"
88
description = "An etcd v3 API client"
9-
repository = "https://github.com/etcdv3/etcdv3.git"
9+
repository = "https://github.com/etcdv3/etcd-client.git"
10+
homepage = "https://github.com/etcdv3/etcd-client"
1011
keywords = ["etcd", "v3", "api", "client", "async"]
1112

1213
[dependencies]

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2020 The etcdv3 Authors
1+
Copyright (c) 2020 The etcd-client Authors
22

33
Permission is hereby granted, free of charge, to any
44
person obtaining a copy of this software and associated

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# etcdv3
1+
# etcd-client
22

33
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
44

@@ -24,7 +24,7 @@ It provides asynchronous client backed by [tokio](https://github.com/tokio-rs/to
2424
## Usage
2525

2626
```Rust
27-
use ectdv3::*;
27+
use ectd_client::*;
2828

2929
let mut client = Client::connect(["localhost:2379"]).await?;
3030
// put kv
@@ -48,7 +48,7 @@ Notes that we use a fixed `etcd` server URI (localhost:2379) to connect to etcd
4848

4949
## Rust version requirements
5050

51-
`etcdv3` works on rust `1.39` and above as it requires support for the `async_await`
51+
`etcd-client` works on rust `1.39` and above as it requires support for the `async_await`
5252
feature.
5353

5454
## License
@@ -58,5 +58,5 @@ This project is licensed under the MIT license ([LICENSE](LICENSE) or http://ope
5858
## Contribution
5959

6060
Unless you explicitly state otherwise, any contribution intentionally submitted
61-
for inclusion in `etcdv3` by you, shall be licensed as MIT, without any additional
61+
for inclusion in `etcd-client` by you, shall be licensed as MIT, without any additional
6262
terms or conditions.

examples/kv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! KV example.
22
3-
use etcdv3::*;
3+
use etcd_client::*;
44

55
#[derive(Debug)]
66
struct KV {

examples/watch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Watch example
22
3-
use etcdv3::*;
3+
use etcd_client::*;
44

55
#[tokio::main]
66
async fn main() -> Result<(), Error> {

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::str::Utf8Error;
55

66
pub type Result<T> = std::result::Result<T, Error>;
77

8-
/// The error type for `etcdv3` client.
8+
/// The error type for `etcd` client.
99
#[derive(Debug)]
1010
pub enum Error {
1111
/// Invalid arguments

0 commit comments

Comments
 (0)