# 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.90"
name = "octoroute"
version = "0.1.0"
authors = ["Steve Brandon"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Intelligent multi-model router for self-hosted LLMs"
readme = "README.md"
license = "MIT"
repository = "https://github.com/slb350/octoroute"

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

[[bin]]
name = "octoroute"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "routing"
path = "benches/routing.rs"
harness = false

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

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

[dependencies.futures]
version = "0.3"

[dependencies.open-agent-sdk]
version = "0.6"

[dependencies.prometheus]
version = "0.14"

[dependencies.rand]
version = "0.9"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

[dependencies.toml]
version = "0.9"

[dependencies.tower]
version = "0.5"

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

[dependencies.tracing]
version = "0.1"

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

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

[dev-dependencies.criterion]
version = "0.7"
features = ["async_tokio"]

[dev-dependencies.proptest]
version = "1.4"

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

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.wiremock]
version = "0.6"
