openrouter2 0.2.1

Typed async and blocking reqwest clients for the OpenRouter API.
Documentation
# 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.88"
name = "openrouter2"
version = "0.2.1"
build = false
include = [
    "src/**",
    "Cargo.toml",
    "README.md",
    "CHANGELOG.md",
    "LICENSE-APACHE",
    "LICENSE-MIT",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed async and blocking reqwest clients for the OpenRouter API."
homepage = "https://github.com/idknerdyshit/openrouter2"
documentation = "https://docs.rs/openrouter2"
readme = "README.md"
keywords = [
    "openrouter",
    "llm",
    "ai",
    "async",
    "reqwest",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/idknerdyshit/openrouter2"

[features]
async = [
    "dep:async-stream",
    "dep:futures-core",
    "dep:futures-util",
]
blocking = ["reqwest/blocking"]
default = ["async"]

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

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

[dependencies.bytes]
version = "1"

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

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.percent-encoding]
version = "2"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "query",
    "form",
    "multipart",
    "stream",
    "rustls",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"
features = ["std"]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "io-util",
    "macros",
    "net",
    "rt-multi-thread",
    "sync",
]

[lints.clippy]
allow_attributes_without_reason = "warn"
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
clone_on_ref_ptr = "warn"
dbg_macro = "deny"
large_futures = "warn"
large_stack_arrays = "warn"
panic_in_result_fn = "warn"
print_stderr = "warn"
print_stdout = "warn"
result_large_err = "warn"
todo = "deny"
unimplemented = "deny"

[lints.rust]
unsafe_code = "deny"