27 lines
852 B
TOML
27 lines
852 B
TOML
[package]
|
|
name = "torn-key-pool"
|
|
version = "0.1.1"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[features]
|
|
default = [ "postgres" ]
|
|
postgres = [ "dep:sqlx", "dep:chrono", "dep:indoc" ]
|
|
|
|
[dependencies]
|
|
torn-api = { path = "../torn-api", default-features = false }
|
|
sqlx = { version = "0.6", features = [ "postgres", "chrono" ], optional = true }
|
|
chrono = { version = "0.4", optional = true }
|
|
indoc = { version = "1", optional = true }
|
|
async-trait = "0.1"
|
|
thiserror = "1"
|
|
|
|
[dev-dependencies]
|
|
torn-api = { path = "../torn-api", features = [ "reqwest" ] }
|
|
sqlx = { version = "*", features = [ "runtime-tokio-rustls" ] }
|
|
dotenv = "0.15.0"
|
|
tokio = { version = "1.20.1", features = ["test-util", "rt", "macros"] }
|
|
tokio-test = "0.4.2"
|
|
reqwest = { version = "0.11", features = [ "json" ] }
|