[package]
edition = "2024"
rust-version = "1.85"
name = "ccwire"
version = "0.1.1"
authors = ["Ian Macalinao <github@igm.pub>"]
build = false
exclude = [
"tests/corpus",
"tests/corpus.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust SDK for Claude Code: the stream-json protocol, typed"
documentation = "https://docs.rs/ccwire"
readme = "README.md"
keywords = [
"claude",
"claude-code",
"agent",
"sdk",
]
categories = ["api-bindings"]
license = "Apache-2.0"
repository = "https://github.com/talaagent/ccwire"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
runtime = ["dep:tokio"]
tracing = ["dep:tracing"]
[lib]
name = "ccwire"
path = "src/lib.rs"
[[example]]
name = "chat"
path = "examples/chat.rs"
required-features = ["runtime"]
[[example]]
name = "transcript"
path = "examples/transcript.rs"
[[test]]
name = "framing"
path = "tests/framing.rs"
[[test]]
name = "property"
path = "tests/property.rs"
[[test]]
name = "protocol"
path = "tests/protocol.rs"
[[test]]
name = "session"
path = "tests/session.rs"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"io-util",
"sync",
"rt",
]
optional = true
default-features = false
[dependencies.tracing]
version = "0.1"
features = ["std"]
optional = true
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"io-util",
"sync",
"rt",
"rt-multi-thread",
"macros",
"time",
"process",
]
default-features = false
[lints.clippy]
await_holding_lock = "deny"
clone_on_ref_ptr = "deny"
cognitive_complexity = "deny"
disallowed_methods = "deny"
disallowed_types = "deny"
large_futures = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
std_instead_of_alloc = "deny"
std_instead_of_core = "deny"
struct_excessive_bools = "allow"
too_many_lines = "deny"
unnecessary_wraps = "allow"
unwrap_used = "deny"
[lints.clippy.complexity]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1