# 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.83.0"
name = "edgequake-llm"
version = "0.3.0"
authors = ["EdgeQuake Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Multi-provider LLM abstraction library with caching, rate limiting, and cost tracking"
homepage = "https://github.com/raphaelmansuy/edgequake-llm"
documentation = "https://docs.rs/edgequake-llm"
readme = "README.md"
keywords = [
    "llm",
    "openai",
    "anthropic",
    "gemini",
    "ai",
]
categories = [
    "api-bindings",
    "asynchronous",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/raphaelmansuy/edgequake-llm"

[features]
bedrock = [
    "dep:aws-sdk-bedrockruntime",
    "dep:aws-config",
    "dep:aws-smithy-types",
]
default = ["otel"]
otel = [
    "opentelemetry",
    "tracing-opentelemetry",
]

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

[[example]]
name = "azure_env_check"
path = "examples/azure/env_check.rs"

[[example]]
name = "azure_full_demo"
path = "examples/azure/full_demo.rs"

[[example]]
name = "cost_tracking"
path = "examples/advanced/cost_tracking.rs"

[[example]]
name = "gemini_chat"
path = "examples/gemini/chat.rs"

[[example]]
name = "gemini_demo"
path = "examples/gemini/demo.rs"

[[example]]
name = "gemini_embeddings"
path = "examples/gemini/embeddings.rs"

[[example]]
name = "gemini_streaming"
path = "examples/gemini/streaming.rs"

[[example]]
name = "gemini_tool_calling"
path = "examples/gemini/tool_calling.rs"

[[example]]
name = "gemini_vision"
path = "examples/gemini/vision.rs"

[[example]]
name = "local_llm"
path = "examples/local/local_llm.rs"

[[example]]
name = "middleware"
path = "examples/advanced/middleware.rs"

[[example]]
name = "mistral_chat"
path = "examples/mistral/chat.rs"

[[example]]
name = "multi_provider"
path = "examples/advanced/multi_provider.rs"

[[example]]
name = "openai_basic_completion"
path = "examples/openai/basic_completion.rs"

[[example]]
name = "openai_chatbot"
path = "examples/openai/chatbot.rs"

[[example]]
name = "openai_demo"
path = "examples/openai/demo.rs"

[[example]]
name = "openai_embeddings"
path = "examples/openai/embeddings.rs"

[[example]]
name = "openai_streaming"
path = "examples/openai/streaming.rs"

[[example]]
name = "openai_tool_calling"
path = "examples/openai/tool_calling.rs"

[[example]]
name = "openai_vision"
path = "examples/openai/vision.rs"

[[example]]
name = "reranking"
path = "examples/advanced/reranking.rs"

[[example]]
name = "retry_handling"
path = "examples/advanced/retry_handling.rs"

[[example]]
name = "vertexai_chat"
path = "examples/vertexai/chat.rs"

[[example]]
name = "vertexai_demo"
path = "examples/vertexai/demo.rs"

[[example]]
name = "vertexai_embeddings"
path = "examples/vertexai/embeddings.rs"

[[example]]
name = "vertexai_streaming"
path = "examples/vertexai/streaming.rs"

[[example]]
name = "vertexai_tool_calling"
path = "examples/vertexai/tool_calling.rs"

[[example]]
name = "vertexai_vision"
path = "examples/vertexai/vision.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-openai]
version = "0.33"
features = [
    "chat-completion",
    "embedding",
]

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

[dependencies.aws-config]
version = "1"
features = ["behavior-version-latest"]
optional = true

[dependencies.aws-sdk-bedrockruntime]
version = "1"
optional = true

[dependencies.aws-smithy-types]
version = "1"
optional = true

[dependencies.backoff]
version = "0.4"
features = ["tokio"]

[dependencies.base64]
version = "0.22"

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

[dependencies.dirs]
version = "5.0"

[dependencies.dotenvy]
version = "0.15"

[dependencies.futures]
version = "0.3"

[dependencies.opentelemetry]
version = "0.27"
optional = true

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

[dependencies.reqwest-eventsource]
version = "0.6"

[dependencies.rust-stemmers]
version = "1.2"

[dependencies.secrecy]
version = "0.10"
features = ["serde"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tiktoken-rs]
version = "0.6"

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

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

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.28"
optional = true

[dependencies.unicode-normalization]
version = "0.1"

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

[dev-dependencies.serial_test]
version = "3.2"

[dev-dependencies.tokio]
version = "1.0"
features = [
    "full",
    "macros",
    "rt-multi-thread",
]
