feat(sdk/http): implement automatic retries with exponential backoff and jitter

This commit is contained in:
nvrl committed 2026-06-25 15:54:03 +02:00
1 parent 808a96cdd1
commit d2f44d511c
4 files changed
+317 -62

No files matched your search

+3 -1
View File
@@ -10,7 +10,7 @@ repository = "https://github.com/ProtonDriveApps/sdk"
rust-version = "1.80"
[workspace.dependencies]
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "fs", "io-util"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "fs", "io-util", "time"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "stream", "multipart"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
@@ -24,6 +24,8 @@ hex = "0.4"
hmac = "0.12"
sha1 = "0.10"
sha2 = "0.10"
aes-gcm = "0.10"
hkdf = "0.12"
bcrypt = "0.17"
pgp = "0.16"
tracing = "0.1"