# 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.85"
name = "aion-server"
version = "0.8.0"
authors = ["Tom Whiting <tom@ablative.com.au>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Aion workflow server library: HTTP, gRPC, WebSocket, and worker endpoints. Run it with the `aion` binary from the aion-cli crate."
documentation = "https://docs.rs/aion-server"
readme = "README.md"
keywords = [
    "aion",
    "workflow",
    "durable-execution",
    "server",
    "grpc",
]
categories = [
    "asynchronous",
    "development-tools",
]
license = "AGPL-3.0-only"
repository = "https://github.com/ablative-io/aion"
resolver = "2"

[features]
auth = [
    "dep:jsonwebtoken",
    "dep:reqwest",
]
default = []
embed-dashboard = ["dep:rust-embed"]
haematite-backend = ["dep:aion-store-haematite"]
liminal-transport = [
    "dep:liminal-sdk",
    "dep:liminal-server",
    "dep:liminal",
]

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

[[example]]
name = "failover_demo"
path = "examples/failover_demo.rs"
required-features = ["haematite-backend"]

[[example]]
name = "lsub5_xnode_failover_demo"
path = "examples/lsub5_xnode_failover_demo.rs"
required-features = [
    "haematite-backend",
    "liminal-transport",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.aion]
version = "0.8.0"
package = "aion-rs"

[dependencies.aion-core]
version = "0.8.0"

[dependencies.aion-package]
version = "0.8.0"

[dependencies.aion-proto]
version = "0.8.0"
features = ["generated"]

[dependencies.aion-store]
version = "0.8.0"

[dependencies.aion-store-haematite]
version = "0.8.0"
optional = true

[dependencies.aion-store-libsql]
version = "0.8.0"

[dependencies.aion-toolchain]
version = "0.8.0"

[dependencies.async-trait]
version = "0.1"

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

[dependencies.base64]
version = "0.22.1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.dashmap]
version = "6.2"

[dependencies.futures]
version = "0.3"

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

[dependencies.jsonwebtoken]
version = "10.3.0"
features = ["rust_crypto"]
optional = true

[dependencies.liminal]
version = "0.2.0"
optional = true
package = "liminal-rs"

[dependencies.liminal-sdk]
version = "0.2.0"
optional = true

[dependencies.liminal-server]
version = "0.2.0"
optional = true

[dependencies.prometheus]
version = "0.14.0"

[dependencies.prost]
version = "0.14"

[dependencies.reqwest]
version = "0.13.4"
features = [
    "json",
    "rustls",
]
optional = true
default-features = false

[dependencies.rust-embed]
version = "8.11.0"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.52"
features = ["full"]

[dependencies.tokio-stream]
version = "0.1.18"

[dependencies.toml]
version = "1.1"

[dependencies.tonic]
version = "0.14"

[dependencies.tower]
version = "0.5"
features = ["util"]

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

[dependencies.tracing]
version = "0.1"

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

[dependencies.uuid]
version = "1.23"

[dev-dependencies.aion-core]
version = "0.8.0"

[dev-dependencies.aion-package]
version = "0.8.0"
features = ["test-support"]

[dev-dependencies.fs4]
version = "1.1"

[dev-dependencies.haematite]
version = "0.3.0"

[dev-dependencies.libsql]
version = "0.9"

[dev-dependencies.reqwest]
version = "0.13.4"
features = [
    "json",
    "rustls",
]
default-features = false

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

[dev-dependencies.tokio-stream]
version = "0.1.18"
features = ["net"]

[dev-dependencies.tokio-tungstenite]
version = "0.29.0"

[dev-dependencies.zip]
version = "8.6"

[lints.clippy]
expect_used = "deny"
panic = "deny"
todo = "warn"
unwrap_used = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
