Skip to content

Commit

Permalink
Rename the crate from 'etcdv3' to 'etcd-client'.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidli2010 committed Mar 21, 2020
1 parent c03945b commit 912b399
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[package]
name = "etcdv3"
name = "etcd-client"
version = "0.1.0"
authors = ["The etcdv3 Authors <davidli2010@foxmail.com>"]
authors = ["The etcd-client Authors <davidli2010@foxmail.com>"]
edition = "2018"
readme = "README.md"
license = "MIT"
description = "An etcd v3 API client"
repository = "https://github.com/etcdv3/etcdv3.git"
repository = "https://github.com/etcdv3/etcd-client.git"
homepage = "https://github.com/etcdv3/etcd-client"
keywords = ["etcd", "v3", "api", "client", "async"]

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020 The etcdv3 Authors
Copyright (c) 2020 The etcd-client Authors

Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# etcdv3
# etcd-client

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

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

```Rust
use ectdv3::*;
use ectd_client::*;

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

## Rust version requirements

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

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

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in `etcdv3` by you, shall be licensed as MIT, without any additional
for inclusion in `etcd-client` by you, shall be licensed as MIT, without any additional
terms or conditions.
2 changes: 1 addition & 1 deletion examples/kv.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! KV example.
use etcdv3::*;
use etcd_client::*;

#[derive(Debug)]
struct KV {
Expand Down
2 changes: 1 addition & 1 deletion examples/watch.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Watch example
use etcdv3::*;
use etcd_client::*;

#[tokio::main]
async fn main() -> Result<(), Error> {
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::str::Utf8Error;

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

/// The error type for `etcdv3` client.
/// The error type for `etcd` client.
#[derive(Debug)]
pub enum Error {
/// Invalid arguments
Expand Down

0 comments on commit 912b399

Please sign in to comment.