etcd-client
An etcd v3 API client for Rust. It provides asynchronous client backed by tokio and tonic.
Features
- etcd API v3
- asynchronous
Supported APIs
- KV
- Watch
- Lease
- Auth
- Maintenance
- Cluster
- Lock
- Election
Usage
Add this to your Cargo.toml
:
[]
= "0.6"
= { = "0.2", = ["full"] }
To get started using etcd-client
:
use ;
async
Examples
Examples can be found in examples
.
Feature Flags
tls
: Enables therustls
-based TLS connection. Not enabled by default.tls-roots
: Adds system trust roots torustls
-based TLS connection using therustls-native-certs
crate. Not enabled by default.
Test
We test this library with etcd 3.4.
Notes that we use a fixed etcd
server URI (localhost:2379) to connect to etcd server.
Rust version requirements
etcd-client
works on rust 1.39
and above as it requires support for the async_await
feature.
License
This project is licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT).
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in etcd-client
by you, shall be licensed as MIT, without any additional
terms or conditions.