# 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 = "cvkg-webkit-server"
version = "0.1.16"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cyber Viking Kvasir Graph (CVKG) - High-fidelity agentic UI framework"
readme = "README.md"
license = "MIT"
repository = "https://github.com/sydonayrex/cvkg"
resolver = "2"

[features]
backend-native = [
    "wgpu/metal",
    "wgpu/dx12",
    "wgpu/vulkan-portability",
]
backend-wasm = []
backend-webgl2 = ["wgpu/webgl"]
backend-wgpu = [
    "wgpu/webgpu",
    "wgpu/wgsl",
]
default = []

[[bin]]
name = "cvkg-webkit-server"
path = "src/main.rs"

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

[dependencies.anyhow]
version = "1.0"

[dependencies.arc-swap]
version = "1.9"

[dependencies.axum]
version = "0.7"
features = ["ws"]

[dependencies.bytes]
version = "1.0"

[dependencies.clap]
version = "4.4"
features = [
    "derive",
    "env",
]

[dependencies.cvkg-cli]
version = "0.1.16"

[dependencies.dotenvy]
version = "0.15.7"

[dependencies.futures-util]
version = "0.3.32"

[dependencies.http-body-util]
version = "0.1"

[dependencies.metrics]
version = "0.23"

[dependencies.metrics-exporter-prometheus]
version = "0.15"

[dependencies.mime_guess]
version = "2.0.5"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.tokio]
version = "1.0"
features = [
    "sync",
    "rt",
    "macros",
    "macros",
    "rt-multi-thread",
    "process",
    "signal",
]
default-features = false

[dependencies.tower]
version = "0.4"
features = [
    "util",
    "limit",
]

[dependencies.tower-http]
version = "0.5"
features = [
    "cors",
    "fs",
    "set-header",
    "trace",
    "timeout",
    "limit",
    "compression-full",
]

[dependencies.tower_governor]
version = "0.3"

[dependencies.tracing]
version = "0.1"

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

[dependencies.validator]
version = "0.20.0"
features = ["derive"]

[dependencies.wasmtime]
version = "44.0"
features = [
    "cranelift",
    "runtime",
    "component-model",
]

[dependencies.wasmtime-wasi]
version = "44.0"
features = ["p1"]

[dependencies.wgpu]
version = "0.20"
features = []
optional = true

[dependencies.wry]
version = "0.55.0"

[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]

[dev-dependencies.tokio]
version = "1.0"
features = [
    "sync",
    "rt",
    "macros",
    "test-util",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook]
version = "0.1"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "HtmlCanvasElement",
    "CanvasRenderingContext2d",
    "WebGl2RenderingContext",
    "WebGlBuffer",
    "WebGlProgram",
    "WebGlShader",
    "WebGlUniformLocation",
    "WebGlVertexArrayObject",
    "Gpu",
    "GpuAdapter",
    "GpuDevice",
    "GpuQueue",
    "GpuBuffer",
    "GpuCommandEncoder",
    "GpuRenderPassEncoder",
    "GpuRenderPipeline",
    "GpuShaderModule",
    "GpuCanvasContext",
    "GpuTextureFormat",
    "GpuColorDict",
    "Window",
    "Document",
    "Element",
    "HtmlElement",
    "Navigator",
    "Performance",
    "Storage",
]
