cedros-data 0.1.0

General-purpose Postgres-backed multi-site content and custom data storage
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.80"
name = "cedros-data"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "General-purpose Postgres-backed multi-site content and custom data storage"
readme = "README.md"
license = "MIT OR Apache-2.0"

[features]
cedros-login-profile = [
    "http",
    "dep:reqwest",
]
cli = [
    "dep:clap",
    "dep:tracing-subscriber",
    "dep:anyhow",
]
default = [
    "cli",
    "http",
]
http = [
    "dep:axum",
    "dep:tower-http",
    "dep:hyper",
]
storage = [
    "http",
    "dep:aws-sdk-s3",
    "dep:aws-config",
    "dep:image",
]

[lib]
name = "cedros_data"
path = "src/lib.rs"

[[bin]]
name = "cedros-data"
path = "src/main.rs"
required-features = ["cli"]

[dependencies.anyhow]
version = "1"
optional = true

[dependencies.aws-config]
version = "1"
optional = true

[dependencies.aws-sdk-s3]
version = "1"
optional = true

[dependencies.axum]
version = "0.8"
features = [
    "macros",
    "json",
    "multipart",
]
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.futures-util]
version = "0.3"

[dependencies.hyper]
version = "1"
optional = true

[dependencies.image]
version = "0.25"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "postgres",
    "uuid",
    "chrono",
    "json",
    "migrate",
]

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tower-http]
version = "0.6"
features = [
    "trace",
    "cors",
]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]
optional = true

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[dev-dependencies.tower]
version = "0.5"
features = ["util"]