fix(rust): align runtime with spec + add Rust docs#342
Merged
Conversation
Fixes 8 spec violations found during audit against spec/spec.md: - §7.1.2: Audio MIME fallback strips prefix instead of defaulting to wav - §8.1: Anthropic processor falls back to raw string on JSON parse failure - §10.3: Streaming refusal raises error via StreamChunk::Error, stops stream - §13.1: Add StreamChunk::Thinking variant, emit Thinking events from Anthropic - §13.1: Add Status event emission for steering injection - §13.1: Emit messages_updated after context trim and steering drain - §13.1: Wrap event callbacks in catch_unwind for panic safety - §13.5: Make Steering thread-safe with Arc<Mutex<VecDeque>> All 484 tests pass, clippy and fmt clean. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add Rust as a 4th language tab across the entire documentation site: - Create implementation/rust.mdx with installation, API overview, crate structure, async patterns, and current limitations - Create docs-examples/rust/ with compilable example files - Add Rust TabItem to 126 code blocks across 35 documentation pages - Update implementation/index.mdx with Rust in the runtimes table - Update welcome.mdx and getting-started pages to mention Rust - Honestly document implementation gaps (embeddings, images, responses API, MCP/OpenAPI tools not yet supported) Tab order: Python → TypeScript → C# → Rust Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two changes in this PR:
1. Fix Rust spec compliance (8 violations)
Audited the Rust runtime against \spec/spec.md\ and fixed 8 spec violations:
All 484 Rust tests pass, clippy and fmt clean.
2. Add Rust to documentation site
Adds Rust as a 4th language tab across the entire docs:
pm run build\ passes — 120 pages, all links valid.