feat: implemented bulk requests

This commit is contained in:
TotallyNot 2025-04-29 18:26:00 +02:00
parent 4dd4fd37d4
commit c17f93f600
Signed by: pyrite
GPG key ID: 7F1BA9170CD35D15
10 changed files with 767 additions and 176 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "torn-key-pool"
version = "1.0.1"
version = "1.1.0"
edition = "2021"
authors = ["Pyrit [2111649]"]
license-file = { workspace = true }
@ -11,7 +11,7 @@ description = "A generalised API key pool for torn-api"
[features]
default = ["postgres", "tokio-runtime"]
postgres = ["dep:sqlx", "dep:chrono", "dep:indoc"]
tokio-runtime = ["dep:tokio", "dep:rand"]
tokio-runtime = ["dep:tokio", "dep:rand", "dep:tokio-stream"]
[dependencies]
torn-api = { path = "../torn-api", default-features = false, version = "1.0.1" }
@ -30,6 +30,9 @@ indoc = { version = "2", optional = true }
tokio = { version = "1", optional = true, default-features = false, features = [
"time",
] }
tokio-stream = { version = "0.1", optional = true, default-features = false, features = [
"time",
] }
rand = { version = "0.9", optional = true }
futures = "0.3"
reqwest = { version = "0.12", default-features = false, features = [