opencode-sdk-rs 0.1.0

A Rust SDK for the OpenCode API with type-safe access to all endpoints, automatic retries, and streaming support
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"
name = "opencode-sdk-rs"
version = "0.1.0"
authors = ["OpenCode SDK Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust SDK for the OpenCode API with type-safe access to all endpoints, automatic retries, and streaming support"
homepage = "https://github.com/longcipher/opencode-sdk-rs"
documentation = "https://docs.rs/opencode-sdk-rs"
readme = false
keywords = [
    "opencode",
    "sdk",
    "api",
    "client",
    "ai",
]
categories = [
    "api-bindings",
    "web-programming::http-client",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/longcipher/opencode-sdk-rs"

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

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

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

[dependencies.bytes]
version = "1.11.1"

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

[dependencies.hpx]
version = "1.3.0"
features = [
    "rustls-tls",
    "json",
    "query",
    "stream",
]

[dependencies.http]
version = "1.4.0"

[dependencies.pin-project-lite]
version = "0.2"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.49.0"
features = [
    "rt",
    "macros",
    "time",
]

[dependencies.tracing]
version = "0.1.44"

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
cast_possible_truncation = "allow"
expect_used = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "warn"
unwrap_used = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1