[package]
edition = "2024"
rust-version = "1.88.0"
name = "alpe-api"
version = "0.2.1"
authors = ["Alpe Cloud <team@alpe.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Axum-based HTTP API server for the Alpe platform"
readme = false
license = "Apache-2.0"
repository = "https://github.com/alpe-cloud/alpe"
[lib]
name = "alpe_api"
path = "src/lib.rs"
[dependencies.alpe-auth]
version = "0.2.1"
[dependencies.alpe-core]
version = "0.2.1"
[dependencies.anyhow]
version = "1.0.102"
[dependencies.axum]
version = "0.8.8"
features = ["macros"]
[dependencies.chrono]
version = "0.4.44"
features = ["serde"]
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.149"
[dependencies.sqlx]
version = "0.8.6"
features = [
"runtime-tokio-rustls",
"postgres",
"uuid",
"chrono",
"json",
"migrate",
]
[dependencies.tokio]
version = "1.50.0"
features = ["full"]
[dependencies.tower]
version = "0.5.3"
features = ["full"]
[dependencies.tower-http]
version = "0.6.8"
features = [
"cors",
"trace",
"compression-gzip",
]
[dependencies.tracing]
version = "0.1.44"
[dependencies.tracing-subscriber]
version = "0.3.23"
features = [
"env-filter",
"json",
]
[dependencies.utoipa]
version = "5.4.0"
features = [
"axum_extras",
"uuid",
"chrono",
]
[dependencies.uuid]
version = "1.23.0"
features = [
"v4",
"serde",
]
[dev-dependencies.reqwest]
version = "0.13.2"
features = [
"json",
"rustls",
]
default-features = false
[lints.clippy]
cognitive_complexity = "deny"
dbg_macro = "deny"
expect_used = "warn"
large_futures = "warn"
large_stack_frames = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
print_stderr = "warn"
print_stdout = "warn"
todo = "warn"
too_many_arguments = "warn"
too_many_lines = "warn"
unimplemented = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"
[lints.rustdoc]
broken_intra_doc_links = "deny"