# 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"
name = "byokey-types"
version = "1.0.0"
authors = ["AprilNEA <github@sku.moe>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bring Your Own Keys — AI subscription-to-API proxy gateway"
homepage = "https://github.com/AprilNEA/BYOKEY"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/AprilNEA/BYOKEY"
resolver = "2"

[features]
rquest = ["dep:rquest"]
sea-orm = ["dep:sea-orm"]
sqlx = ["dep:sqlx"]

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

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

[dependencies.bytes]
version = "1"

[dependencies.futures-core]
version = "0.3"

[dependencies.rquest]
version = "5"
features = ["full"]
optional = true

[dependencies.sea-orm]
version = "2.0.0-rc.38"
features = [
    "sqlx-sqlite",
    "runtime-tokio-rustls",
    "macros",
]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "sqlite",
]
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.utoipa]
version = "5"

[lints.clippy]
pedantic = "warn"

[lints.rust]
unsafe_code = "forbid"
