# 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"
name = "bedrock-gateway-rust"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A 100% Rust, OpenAI-compatible API gateway for AWS Bedrock — drop-in, single-binary, blazingly fast."
homepage = "https://github.com/sunerpy/bedrock-gateway-rust"
documentation = "https://github.com/sunerpy/bedrock-gateway-rust"
readme = "README.md"
keywords = [
    "bedrock",
    "openai",
    "gateway",
    "aws",
    "llm",
]
categories = [
    "api-bindings",
    "web-programming::http-server",
]
license = "MIT-0"
repository = "https://github.com/sunerpy/bedrock-gateway-rust"

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

[[bin]]
name = "bedrock-gateway"
path = "src/main.rs"

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

[dependencies.anyhow]
version = "1"

[dependencies.async-stream]
version = "0.3"

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

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

[dependencies.aws-sdk-bedrock]
version = "1"

[dependencies.aws-sdk-bedrockruntime]
version = "1.135"

[dependencies.aws-sdk-secretsmanager]
version = "1"

[dependencies.aws-sdk-ssm]
version = "1"

[dependencies.aws-smithy-runtime-api]
version = "1"
features = [
    "client",
    "http-auth",
]

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

[dependencies.axum]
version = "0.8"

[dependencies.axum-extra]
version = "0.10"
features = ["typed-header"]

[dependencies.base64]
version = "0.22"

[dependencies.config]
version = "0.15"

[dependencies.futures]
version = "0.3"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

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

[dependencies.toml]
version = "1"

[dependencies.tower]
version = "0.5"

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

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.insta]
version = "1"
features = ["json"]

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
