https://github.com/rpcpool/rust-etcd-utils
Common etcd utils to use in Rust project
https://github.com/rpcpool/rust-etcd-utils
Last synced: 10 months ago
JSON representation
Common etcd utils to use in Rust project
- Host: GitHub
- URL: https://github.com/rpcpool/rust-etcd-utils
- Owner: rpcpool
- License: agpl-3.0
- Created: 2024-11-21T14:13:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-09T15:00:15.000Z (11 months ago)
- Last Synced: 2025-05-09T15:50:22.798Z (11 months ago)
- Language: Rust
- Size: 133 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
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
```sh
$ cargo test --test -- --nocapture
```