idempotent-0.1.2 has been yanked.
Visit the last successful build:
idempotent-0.3.0
idempotent
Idempotency library with at-most-once execution and response caching.
Features
- Typestate entries:
Processing→Completedenforced at compile time - Pluggable stores: an in-memory suitable for development or single node deployment
- Fencing tokens: prevents stale completions after key expiry and reclaim
- Fingerprint matching: detects mismatched request bodies under the same key
Usage
Add to your Cargo.toml
[]
= { = "0.1.2", = ["memory"] }
Optional Features
- serde: adds
SerializeandDeserializeto idempotency key and entries
Supported Rust versions
The minimum supported Rust version is 1.93.0.
License
Unless otherwise noted, this project is licensed under the Mozilla Public License Version 2.0.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in idempotent by you, shall be licensed as MPL-2.0, without any additional
terms or conditions.