feat(key-pool): updated key pool to use v2 api
This commit is contained in:
parent
5ae490c756
commit
4b52c37774
8 changed files with 1728 additions and 870 deletions
|
|
@ -1,43 +1,45 @@
|
|||
[package]
|
||||
name = "torn-key-pool"
|
||||
version = "0.9.0"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
authors = ["Pyrit [2111649]"]
|
||||
license = "MIT"
|
||||
repository = "https://github.com/TotallyNot/torn-api.rs.git"
|
||||
homepage = "https://github.com/TotallyNot/torn-api.rs.git"
|
||||
license-file = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
description = "A generalised API key pool for torn-api"
|
||||
|
||||
[features]
|
||||
default = [ "postgres", "tokio-runtime" ]
|
||||
postgres = [ "dep:sqlx", "dep:chrono", "dep:indoc", "dep:serde" ]
|
||||
reqwest = [ "dep:reqwest", "torn-api/reqwest" ]
|
||||
awc = [ "dep:awc", "torn-api/awc" ]
|
||||
tokio-runtime = [ "dep:tokio", "dep:rand" ]
|
||||
actix-runtime = [ "dep:actix-rt", "dep:rand" ]
|
||||
default = ["postgres", "tokio-runtime"]
|
||||
postgres = ["dep:sqlx", "dep:chrono", "dep:indoc"]
|
||||
tokio-runtime = ["dep:tokio", "dep:rand"]
|
||||
|
||||
[dependencies]
|
||||
torn-api = { path = "../torn-api", default-features = false, version = "0.7" }
|
||||
async-trait = "0.1"
|
||||
torn-api = { path = "../torn-api", default-features = false, version = "1.0.1" }
|
||||
thiserror = "2"
|
||||
|
||||
sqlx = { version = "0.8", features = [ "postgres", "chrono", "json", "derive" ], optional = true, default-features = false }
|
||||
serde = { version = "1.0", optional = true }
|
||||
sqlx = { version = "0.8", features = [
|
||||
"postgres",
|
||||
"chrono",
|
||||
"json",
|
||||
"derive",
|
||||
], optional = true, default-features = false }
|
||||
serde = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
chrono = { version = "0.4", optional = true }
|
||||
indoc = { version = "2", optional = true }
|
||||
tokio = { version = "1", optional = true, default-features = false, features = ["time"] }
|
||||
actix-rt = { version = "2", optional = true, default-features = false }
|
||||
rand = { version = "0.8", optional = true }
|
||||
tokio = { version = "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 = [ "json" ], optional = true }
|
||||
awc = { version = "3", default-features = false, optional = true }
|
||||
reqwest = { version = "0.12", default-features = false, features = [
|
||||
"brotli",
|
||||
"http2",
|
||||
"rustls-tls-webpki-roots",
|
||||
] }
|
||||
|
||||
[dev-dependencies]
|
||||
torn-api = { path = "../torn-api", features = [ "reqwest" ] }
|
||||
sqlx = { version = "0.8", features = [ "runtime-tokio-rustls" ] }
|
||||
dotenvy = "0.15"
|
||||
torn-api = { path = "../torn-api" }
|
||||
sqlx = { version = "0.8", features = ["runtime-tokio-rustls"] }
|
||||
tokio = { version = "1.42", features = ["rt"] }
|
||||
tokio-test = "0.4"
|
||||
reqwest = { version = "0.12", default-features = true }
|
||||
awc = { version = "3", features = [ "rustls" ] }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue