# SPDX-FileCopyrightText: Politik im Blick developers
# SPDX-FileCopyrightText: Wolfgang Silbermayr <wolfgang@silbermayr.at>
#
# SPDX-License-Identifier: AGPL-3.0-or-later OR EUPL-1.2

[package]
authors = [
  "Politik im Blick developers",
  "Wolfgang Silbermayr <wolfgang@silbermayr.at>",
]
description = "pib-service edit API"
documentation = "https://docs.rs/pib-service-api"
edition = "2024"
license = "AGPL-3.0-or-later OR EUPL-1.2"
name = "pib-service-api"
repository = "https://codeberg.org/pib/pib-service"
version = "0.17.1"

[dependencies]
anyhow.workspace = true
axum.workspace = true
futures-core.workspace = true
http.workspace = true
log.workspace = true
pib-service-api-auth.workspace = true
pib-service-api-types.workspace = true
pib-service-core-types.workspace = true
pib-service-facade.workspace = true
serde = { workspace = true, features = ["derive"] }
snafu.workspace = true
tokio.workspace = true
tower-http = { workspace = true, features = ["auth", "cors"] }

[dev-dependencies]
axum-test.workspace = true
mockall.workspace = true
pib-service-api-auth = { workspace = true, features = ["mockall"] }
pib-service-facade = { workspace = true, features = ["mockall"] }
pretty_assertions = { workspace = true, features = [
  # We need the unstable feature for using the `assert_matches!(…)` macro.
  # This is nightly-only in `std` which is mirrored by `pretty_assertions`.
  # If the structure of this macro ever changes, it should be rather easy
  # to adapt, so we take the risk in order to gain the benefits of using
  # `assert_matches!(…)`.
  "unstable",
] }
