opencode-codes 1.18.5

Typed Rust SDK for the opencode agent server: serde models of its OpenAPI 3.1 HTTP/SSE protocol, plus an async (Tokio) client and a managed local-server launcher for driving opencode sessions, prompts, and permission flows.
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 = "2021"
rust-version = "1.85"
name = "opencode-codes"
version = "1.18.5"
authors = ["Matthew Goodman <d3a6d0cec0c16f3e@inboxnegative.com>"]
build = false
exclude = [
    "tests/schemas/",
    "*.sh",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed Rust SDK for the opencode agent server: serde models of its OpenAPI 3.1 HTTP/SSE protocol, plus an async (Tokio) client and a managed local-server launcher for driving opencode sessions, prompts, and permission flows."
homepage = "https://github.com/meawoppl/rust-code-agent-sdks"
documentation = "https://docs.rs/opencode-codes"
readme = "README.md"
keywords = [
    "opencode",
    "agent",
    "llm",
    "sse",
    "http",
]
categories = [
    "api-bindings",
    "asynchronous",
    "encoding",
    "parsing",
]
license = "Apache-2.0"
repository = "https://github.com/meawoppl/rust-code-agent-sdks"

[features]
async-client = [
    "types",
    "dep:reqwest",
    "dep:reqwest-eventsource",
    "dep:tokio",
    "dep:futures-core",
]
default = [
    "types",
    "async-client",
]
integration-tests = []
server = [
    "async-client",
    "dep:portpicker",
]
types = []

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

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

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

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

[dependencies.portpicker]
version = "0.1.1"
optional = true

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

[dependencies.reqwest-eventsource]
version = "0.6.0"
optional = true

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

[dependencies.serde_json]
version = "1.0.143"

[dependencies.thiserror]
version = "2.0.16"

[dependencies.tokio]
version = "1.49.0"
features = ["full"]
optional = true

[dev-dependencies.jsonschema]
version = "0.46.5"

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

[dev-dependencies.tokio]
version = "1.49.0"
features = ["full"]

[lints.rust]
unsafe_code = "deny"