# 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 = "avina-api"
version = "1.2.1"
authors = ["Sandro-Alessio Gierens <sandro@gierens.de>"]
build = "build.rs"
exclude = []
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust API server for the LRZ-specific features of the Openstack-based LRZ Compute Cloud."
homepage = "https://github.com/LRZ-BADW/avina"
readme = "README.md"
categories = ["web-programming"]
license = "MIT"
repository = "https://github.com/LRZ-BADW/avina"
resolver = "2"

[features]
accounting = ["avina-wire/accounting"]
all = [
    "accounting",
    "budgeting",
    "hello",
    "pricing",
    "quota",
    "resources",
    "user",
]
budgeting = ["avina-wire/budgeting"]
default = ["all"]
hello = ["avina-wire/hello"]
pricing = ["avina-wire/pricing"]
quota = ["avina-wire/quota"]
resources = ["avina-wire/resources"]
user = ["avina-wire/user"]

[lib]
name = "avina_api"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "avina-api"
path = "src/main.rs"

[[test]]
name = "api"
path = "tests/api/main.rs"

[dependencies.actix-cors]
version = "0.7.1"

[dependencies.actix-web]
version = "4"

[dependencies.anyhow]
version = "1"

[dependencies.avina-wire]
version = "2.2"
features = ["sqlx"]

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

[dependencies.config]
version = "0.15"

[dependencies.indexmap]
version = "2.14"

[dependencies.jzon]
version = "0.12"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls",
    "cookies",
]
default-features = false

[dependencies.secrecy]
version = "0.10.3"
features = ["serde"]

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

[dependencies.serde-aux]
version = "4"

[dependencies.serde_json]
version = "1"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "tls-rustls",
    "macros",
    "mysql",
    "uuid",
    "chrono",
    "migrate",
]
default-features = false

[dependencies.strum]
version = "0.28"
features = ["derive"]

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

[dependencies.tracing]
version = "0.1"
features = ["log"]

[dependencies.tracing-actix-web]
version = "0.7"

[dependencies.tracing-bunyan-formatter]
version = "0.3"

[dependencies.tracing-log]
version = "0.2"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "registry",
    "env-filter",
]

[dependencies.uuid]
version = "1.20"
features = ["v4"]

[dev-dependencies.cargo-husky]
version = "1.5"
features = ["user-hooks"]
default-features = false

[dev-dependencies.once_cell]
version = "1"

[dev-dependencies.rand]
version = "0.9"

[dev-dependencies.wiremock]
version = "0.6"
