# 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 = "2021"
rust-version = "1.80"
name = "packguard-server"
version = "0.4.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PackGuard HTTP server: REST API + job runner backing the dashboard."
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/Tmauc/packguard"

[features]
default = []
ui-embed = [
    "dep:rust-embed",
    "dep:mime_guess",
]

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

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

[[test]]
name = "embed"
path = "tests/embed.rs"

[[test]]
name = "types_drift"
path = "tests/types_drift.rs"

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.8"
features = [
    "http1",
    "tokio",
    "json",
    "query",
]
default-features = false

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "serde",
]
default-features = false

[dependencies.futures]
version = "0.3"

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

[dependencies.packguard-actions]
version = "0.4.0"

[dependencies.packguard-core]
version = "0.4.0"

[dependencies.packguard-intel]
version = "0.4.0"

[dependencies.packguard-policy]
version = "0.4.0"

[dependencies.packguard-store]
version = "0.4.0"

[dependencies.rust-embed]
version = "8"
features = ["compression"]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

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

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "trace",
    "cors",
]

[dependencies.tracing]
version = "0.1"

[dependencies.ts-rs]
version = "11"
features = ["serde-json-impl"]

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

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "json",
    "gzip",
    "brotli",
]
default-features = false

[dev-dependencies.tempfile]
version = "3"

[build-dependencies.anyhow]
version = "1"
