# 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 = "ampcode"
version = "0.1.0"
authors = ["AprilNEA <github@sku.moe>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial Rust client for Ampcode (ampcode.com)"
homepage = "https://ampcode.com"
readme = false
keywords = [
    "ampcode",
    "amp",
    "anthropic",
    "ai",
    "client",
]
categories = [
    "web-programming::http-client",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/AprilNEA/BYOKEY"
resolver = "2"

[features]
default = ["rustls-tls"]
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls-tls"]

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

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

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

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

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

[dev-dependencies.serde_json]
version = "1"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "full",
    "test-util",
]

[lints.clippy]
pedantic = "warn"

[lints.rust]
unsafe_code = "forbid"
