refactor: Update charging-engine dependencies and fix rate limiter configuration

- Upgrade tower_governor from 0.4.2 to 0.8.0 and add governor 0.10.4 dependency
- Add thiserror 2.0.18 for error handling
- Update dev dependencies: tokio-test to 0.4.5, mockall to 0.14.0, serial_test to 3.4.0
- Add Copy trait to CircuitState enum
- Add Clone derive to CircuitBreaker struct
- Add error trait bounds to CircuitBreakerError generic type
- Update create_rate_limiter return type to use explicit generic parameters
- Fix Go
This commit is contained in:
nutcas3
2026-04-26 00:42:19 +03:00
parent 133523d83b
commit b4b0966937
3 changed files with 16 additions and 12 deletions
+6 -4
View File
@@ -18,7 +18,8 @@ chrono = { workspace = true }
axum = { workspace = true }
tower = { workspace = true }
tower-http = { workspace = true }
tower-governor = "0.4.2"
tower_governor = "0.8.0"
governor = "0.10.4"
serde = { workspace = true }
serde_json = { workspace = true }
tracing = { workspace = true }
@@ -27,11 +28,12 @@ anyhow = { workspace = true }
dotenv = { workspace = true }
uuid = { workspace = true }
jsonwebtoken = "10.3.0"
thiserror = "2.0.18"
[dev-dependencies]
tokio-test = "0.4"
mockall = "0.13"
serial_test = "3.2"
tokio-test = "0.4.5"
mockall = "0.14.0"
serial_test = "3.4.0"
[[bin]]
name = "charging-engine"