ave-http 0.8.0

HTTP API server for the Ave runtime, auth system, and admin surface
# 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"
rust-version = "1.91.0"
name = "ave-http"
version = "0.8.0"
authors = ["Averiun Ledger, SL <info@averiun.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP API server for the Ave runtime, auth system, and admin surface"
homepage = "https://averiun.com"
readme = "README.md"
keywords = [
    "traceability",
    "distributed-ledger",
    "Averiun",
    "sustainability",
]
license = "AGPL-3.0-only"
repository = "https://github.com/Averiun-Ledger/ave"
resolver = "2"

[features]
default = [
    "sqlite",
    "ext-sqlite",
    "prometheus",
]
ext-sqlite = ["ave-bridge/ext-sqlite"]
prometheus = [
    "ave-bridge/prometheus",
    "dep:prometheus-client",
]
rocksdb = ["ave-bridge/rocksdb"]
sqlite = ["ave-bridge/sqlite"]

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

[[bin]]
name = "ave-http"
path = "src/main.rs"

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

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

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

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

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

[dependencies.argon2]
version = "0.5.3"
features = ["std"]

[dependencies.ave-bridge]
version = "0.8.0"
features = ["openapi"]
default-features = false

[dependencies.axum]
version = "0.8.8"

[dependencies.axum-server]
version = "0.8.0"
features = ["tls-rustls"]

[dependencies.file-rotate]
version = "0.8"

[dependencies.futures]
version = "0.3.32"

[dependencies.hex]
version = "0.4.3"

[dependencies.ip_network]
version = "0.4"

[dependencies.prometheus-client]
version = "0.24.0"
optional = true

[dependencies.rand]
version = "0.10.0"

[dependencies.rcgen]
version = "0.14"

[dependencies.reqwest]
version = "0.13.2"
features = ["json"]

[dependencies.rusqlite]
version = "0.38.0"
features = [
    "bundled",
    "time",
]

[dependencies.rustls]
version = "0.23.37"
features = ["ring"]

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.serde_qs]
version = "1.0"
features = ["axum"]

[dependencies.sha2]
version = "0.10.9"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.time]
version = "0.3.47"

[dependencies.tokio]
version = "1.50.0"

[dependencies.tokio-util]
version = "0.7.18"

[dependencies.tower]
version = "0.5.3"

[dependencies.tower-http]
version = "0.6.8"
features = [
    "trace",
    "metrics",
    "cors",
    "set-header",
]

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-appender]
version = "0.2.4"

[dependencies.tracing-subscriber]
version = "0.3.23"
features = [
    "env-filter",
    "fmt",
]

[dependencies.utoipa]
version = "5.4.0"
features = ["axum_extras"]

[dependencies.utoipa-swagger-ui]
version = "9"
features = ["axum"]

[dependencies.x509-parser]
version = "0.18"

[dev-dependencies.ave-bridge]
version = "0.8.0"
features = [
    "openapi",
    "test",
]
default-features = false

[dev-dependencies.chrono]
version = "0.4.44"

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

[dev-dependencies.test-log]
version = "0.2.19"
features = ["trace"]