openrouter-rust 0.1.0

A modular, type-safe Rust client 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.85"
name = "openrouter-rust"
version = "0.1.0"
authors = ["JaiChang Park <aristojeff@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A modular, type-safe Rust client for the OpenRouter API"
homepage = "https://github.com/yourusername/openrouter-rust"
documentation = "https://docs.rs/openrouter-rust"
readme = "README.md"
keywords = [
    "openrouter",
    "ai",
    "llm",
    "api",
    "chatgpt",
]
categories = [
    "api-bindings",
    "asynchronous",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/yourusername/openrouter-rust"

[features]
anthropic = []
chat = []
default = [
    "chat",
    "streaming",
    "models",
    "providers",
    "generations",
]
embeddings = []
generations = []
models = []
providers = []
responses = []
streaming = []

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

[[example]]
name = "anthropic_messages"
path = "examples/anthropic_messages.rs"
required-features = ["anthropic"]

[[example]]
name = "basic_chat"
path = "examples/basic_chat.rs"

[[example]]
name = "embeddings"
path = "examples/embeddings.rs"
required-features = ["embeddings"]

[[example]]
name = "generation_metadata"
path = "examples/generation_metadata.rs"
required-features = [
    "generations",
    "chat",
]

[[example]]
name = "models_api"
path = "examples/models_api.rs"
required-features = ["models"]

[[example]]
name = "providers"
path = "examples/providers.rs"
required-features = ["providers"]

[[example]]
name = "responses_api"
path = "examples/responses_api.rs"
required-features = ["responses"]

[[example]]
name = "streaming"
path = "examples/streaming.rs"
required-features = ["streaming"]

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bytes]
version = "1.0"

[dependencies.futures]
version = "0.3"

[dependencies.reqwest]
version = "0.13.1"
features = [
    "json",
    "stream",
]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0.18"

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

[dev-dependencies.mockito]
version = "1.0"

[dev-dependencies.tokio-test]
version = "0.4"