# 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 = "2024"
name = "saps"
version = "0.4.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for the SAP framework"
readme = "README.md"
license = "MIT"
resolver = "2"

[features]
auth-tracing = []
default = ["server"]
server = [
    "dep:include_dir",
    "dep:axum",
    "dep:mime_guess",
    "dep:rust-embed",
    "dep:tokio",
    "dep:sqlx",
    "dep:jsonwebtoken",
    "dep:chrono",
    "dep:uuid",
    "dep:paste",
    "dep:base64",
    "dep:tracing",
    "dep:cron",
    "dep:saps-db-pool-macro",
    "dep:saps-db-tx",
    "dep:saps-test-macro",
    "dep:saps-frontend-macro",
    "dep:saps-background-task",
]

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

[dependencies.axum]
version = "0.8.8"
features = ["ws"]
optional = true

[dependencies.base64]
version = "0.22.1"
optional = true

[dependencies.chrono]
version = "0.4.43"
features = [
    "serde",
    "clock",
]
optional = true
default-features = false

[dependencies.cron]
version = "0.16.0"
optional = true

[dependencies.include_dir]
version = "0.7.4"
optional = true

[dependencies.jsonwebtoken]
version = "10.3.0"
features = ["rust_crypto"]
optional = true
default-features = false

[dependencies.mime_guess]
version = "2.0.5"
optional = true

[dependencies.paste]
version = "1.0"
optional = true

[dependencies.rmp-serde]
version = "1.3.1"

[dependencies.rust-embed]
version = "8.11.0"
optional = true

[dependencies.saps-background-task]
version = "0.1.1"
optional = true

[dependencies.saps-db-pool-macro]
version = "0.1.1"
optional = true

[dependencies.saps-db-tx]
version = "0.1.1"
optional = true

[dependencies.saps-frontend-macro]
version = "0.1.1"
optional = true

[dependencies.saps-test-macro]
version = "0.1.2"
optional = true

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.sqlx]
version = "0.8.6"
features = [
    "postgres",
    "json",
    "runtime-tokio",
    "runtime-tokio-rustls",
    "migrate",
    "chrono",
    "uuid",
    "macros",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.49.0"
features = [
    "rt",
    "rt-multi-thread",
    "process",
    "macros",
    "time",
    "signal",
    "tracing",
]
optional = true

[dependencies.tracing]
version = "0.1.44"
optional = true

[dependencies.uuid]
version = "1.21.0"
features = [
    "serde",
    "v4",
    "fast-rng",
    "js",
]
optional = true

[dev-dependencies.http-body-util]
version = "0.1.3"

[dev-dependencies.tokio]
version = "1.49.0"
features = [
    "rt",
    "rt-multi-thread",
    "process",
    "macros",
    "time",
    "signal",
    "tracing",
]

[dev-dependencies.tower]
version = "0.5.3"
