# SPDX-License-Identifier: Apache-2.0

[package]
name = "csaf-crud"
description = "CSAF 2.0 / 2.1 advisory CRUD server with HATEOAS JSON API and HTML UI (TLS 1.3, HTTP/1.1 + HTTP/2 + HTTP/3)"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
keywords.workspace = true
categories.workspace = true
readme = "../../README.md"

[[bin]]
name = "csaf-crud"
path = "src/main.rs"

[dependencies]
csaf-core = { workspace = true }
csaf-models = { workspace = true }
hyper = { workspace = true }
hyper-util = { workspace = true }
http = { workspace = true }
http-body-util = { workspace = true }
matchit = { workspace = true }
mime_guess = { workspace = true }
rustls = { workspace = true }
rcgen = { workspace = true }
time = { workspace = true }
tokio = { workspace = true }
tokio-rustls = { workspace = true }
quinn = { workspace = true, optional = true }
h3 = { workspace = true, optional = true }
h3-quinn = { workspace = true, optional = true }
serde = { workspace = true }
serde_json = { workspace = true }
bytes = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
tracing-appender = { workspace = true }
anyhow = { workspace = true }
sysinfo = { workspace = true }

[features]
default = ["quic"]
quic = ["dep:quinn", "dep:h3", "dep:h3-quinn"]

[lints]
workspace = true
