rainy-sdk 0.4.2

Official Rust SDK for Rainy API by Enosis Labs v0.4.2 - Updated Cowork plans (Free/GoPlus/Plus/Pro/ProPlus) with usage tracking and credit-based billing, full OpenAI compatibility
Documentation
[dependencies.anyhow]
version = "1.0.99"

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
features = ["serde"]
version = "0.4.41"

[dependencies.eventsource-stream]
version = "0.2"

[dependencies.futures]
version = "0.3.31"

[dependencies.governor]
optional = true
version = "0.7"

[dependencies.rand]
version = "0.8"

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

[dependencies.secrecy]
features = ["serde"]
version = "0.8"

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

[dependencies.serde_json]
version = "1.0.143"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tracing]
optional = true
version = "0.1.41"

[dependencies.url]
version = "2.5"

[dependencies.uuid]
features = ["v4", "serde"]
version = "1.18"

[dev-dependencies.env_logger]
version = "0.11"

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

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

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

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

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

[features]
cache = []
cowork = []
default = ["rate-limiting", "tracing", "cowork"]
rate-limiting = ["governor"]
tracing = ["dep:tracing"]

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

[package]
authors = ["Enosis Labs <hello@enosislabs.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["api-bindings", "asynchronous", "web-programming::http-client"]
description = "Official Rust SDK for Rainy API by Enosis Labs v0.4.2 - Updated Cowork plans (Free/GoPlus/Plus/Pro/ProPlus) with usage tracking and credit-based billing, full OpenAI compatibility"
documentation = "https://docs.rs/rainy-sdk"
edition = "2021"
homepage = "https://github.com/enosislabs/rainy-sdk"
keywords = ["ai", "api", "openai", "anthropic", "gemini"]
license = "Apache-2.0"
name = "rainy-sdk"
readme = "README.md"
repository = "https://github.com/enosislabs/rainy-sdk"
rust-version = "1.92.0"
version = "0.4.2"

[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
include = ["src/**/*", "Cargo.toml", "README.md", "LICENSE", "CONTRIBUTING.md"]
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-pc-windows-msvc", "x86_64-apple-darwin", "aarch64-apple-darwin"]

[profile.bench]
debug = 0
lto = true
opt-level = 3

[profile.dev]
debug = 2
incremental = true
opt-level = 0

[profile.dev.package."*"]
opt-level = 1

[profile.release]
codegen-units = 1
debug = 0
lto = true
opt-level = 3
panic = "abort"
strip = "symbols"

[profile.release.package."*"]
opt-level = 3

[profile.test]
debug = 2
opt-level = 1

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

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