Files
Yeachan-Heo 4fb8a319ed feat(api): enable Anthropic Messages streaming in Rust
Add a standalone api crate for Anthropic's Messages API with typed requests,
responses, and SSE event parsing. The crate can send standard message
requests or consume streaming responses incrementally, and the workspace
now passes the stricter clippy invocation required by this lane.

Constraint: Must fit the existing Rust workspace and pass cargo fmt/clippy/test
Constraint: Live Anthropic verification depends on a valid ANTHROPIC_API_KEY at runtime
Rejected: Add a Stream-trait wrapper with extra dependencies | custom next_event() keeps the crate smaller
Rejected: Skip workspace lint cleanup | user explicitly required cargo clippy to pass
Confidence: medium
Scope-risk: moderate
Directive: Extend StreamEvent deliberately if future lanes need tool-use or thinking deltas
Tested: cargo fmt
Tested: cargo clippy --workspace --all-targets -- -D warnings
Tested: cargo test --workspace
Not-tested: Live Anthropic stream smoke test with a valid API key (current ANTHROPIC_API_KEY returned 401 authentication_error)
2026-03-31 15:45:30 +00:00

20 lines
388 B
TOML

[workspace]
members = ["crates/*"]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "MIT"
publish = false
[workspace.lints.rust]
unsafe_code = "forbid"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
module_name_repetitions = "allow"
missing_panics_doc = "allow"
missing_errors_doc = "allow"