| Crates.io | tower-circuitbreaker |
| lib.rs | tower-circuitbreaker |
| version | 0.1.1 |
| created_at | 2025-05-14 14:41:42.637449+00 |
| updated_at | 2025-10-09 18:12:01.598673+00 |
| description | DEPRECATED: Use tower-resilience instead - A circuit breaker middleware for Tower services |
| homepage | |
| repository | https://github.com/joshrotenberg/tower-circuitbreaker |
| max_upload_size | |
| id | 1673505 |
| size | 80,848 |
⚠️ DEPRECATED: This crate has moved to tower-resilience
This standalone
tower-circuitbreakercrate is no longer maintained. All functionality has been integrated into the comprehensivetower-resilienceproject, which provides:
- Circuit Breaker (what you're looking for!)
- Bulkhead (resource isolation)
- Retry (with advanced backoff strategies)
- Time Limiter (advanced timeouts)
- Cache (response memoization)
- Rate Limiter (request throttling)
All patterns share a unified event system, consistent APIs, and comprehensive observability support.
Migration
Old (tower-circuitbreaker):
[dependencies] tower-circuitbreaker = "0.1"New (tower-resilience):
[dependencies] tower-resilience = "0.2" # Or use the individual crate: tower-resilience-circuitbreaker = "0.3"API Changes:
// Old API use tower_circuitbreaker::circuit_breaker_builder; let cb = circuit_breaker_builder::<String, ()>() .failure_rate_threshold(0.5) .build(); // New API use tower_resilience::circuitbreaker::CircuitBreakerLayer; let cb = CircuitBreakerLayer::<String, ()>::builder() .failure_rate_threshold(0.5) .build();Resources
- New Repository: https://github.com/joshrotenberg/tower-resilience
- Documentation: https://docs.rs/tower-resilience
- Crates.io: https://crates.io/crates/tower-resilience
- Migration Guide: See CHANGELOG
For the original documentation, see the v0.1 documentation.