rust-etcd-utils

Crates.iorust-etcd-utils
lib.rsrust-etcd-utils
version0.12.0
created_at2025-05-12 15:35:40.318804+00
updated_at2025-08-05 19:43:17.984701+00
descriptionA set of utilities for working with etcd in Rust.
homepagehttps://triton.one
repositoryhttps://github.com/rpcpool/rust-etcd-utils
max_upload_size
id1670750
size179,529
(lvboudre)

documentation

README

rust-etcd-utils

Utility library for common ETCD management in Rust, it covers:

  1. Automatic lease management.
  2. Automatic lock lifecycle managemented: auto-revoke and auto-keep-alive.
  3. Builtin retry logic for every public function to make robust in-production application.

Add to library

cargo add rust-etcd-utils

How to test

Uses compose.yaml to launch and instance of etcd with port-fowarding over the port 2379, so localhost:2379 redirects to etcd instance inside docker.

Then run the following command

$ cargo test --test -- --nocapture
Commit count: 19

cargo fmt