[package]
name = "cedros-data"
version = "0.1.4"
edition = "2021"
rust-version = "1.80"
description = "General-purpose Postgres-backed multi-site content and custom data storage"
license = "MIT OR Apache-2.0"
[lib]
name = "cedros_data"
path = "src/lib.rs"
[[bin]]
name = "cedros-data"
path = "src/main.rs"
required-features = ["cli"]
[features]
default = ["cli", "http"]
cli = ["dep:clap", "dep:tracing-subscriber", "dep:anyhow"]
http = ["dep:axum", "dep:tower-http", "dep:hyper", "dep:zip"]
cedros-login-profile = ["http", "dep:reqwest"]
storage = ["http", "dep:aws-sdk-s3", "dep:aws-config", "dep:image"]
[dependencies]
chrono = { version = "0.4", features = ["serde"] }
futures-util = "0.3"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "json", "migrate"] }
thiserror = "1"
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
uuid = { version = "1", features = ["v4", "serde"] }
anyhow = { version = "1", optional = true }
axum = { version = "0.8", features = ["macros", "json", "multipart"], optional = true }
clap = { version = "4", features = ["derive"], optional = true }
hyper = { version = "1", optional = true }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"], optional = true }
tower-http = { version = "0.6", features = ["trace", "cors"], optional = true }
zip = { version = "2", default-features = false, features = ["deflate"], optional = true }
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"], optional = true }
aws-sdk-s3 = { version = "1", optional = true }
aws-config = { version = "1", optional = true }
image = { version = "0.25", optional = true }
[dev-dependencies]
tower = { version = "0.5", features = ["util"] }