SIMD-accelerated buffer diffing for improved render performance.
Adds extra_headers support to the Anthropic adapter, enabling the
interleaved-thinking-2025-05-14 beta header for extended thinking
between tool calls.
make build # Build with patches (default)
make SIMD=0 build # Build with upstream crates
make profile # Build release and run samplylib/
├── patches/
│ ├── ratatui-core/
│ │ ├── apply.sh # Fetches and patches source
│ │ ├── Cargo.toml.template
│ │ ├── buffer-mod.patch
│ │ ├── simd-diff.patch # AVX2/SSE4.1/NEON implementations
│ │ └── buffer-diff.patch
│ └── genai/
│ ├── apply.sh # Fetches and patches source
│ └── anthropic-extra-headers.patch
├── ratatui-core/ # Generated (gitignored)
└── genai/ # Generated (gitignored)
- Create
lib/patches/<lib-name>/apply.sh - Add patch files to the same directory
- Add target to Makefile
- x86_64: AVX2 (32-byte) or SSE4.1 (16-byte), runtime detection
- aarch64: NEON (16-byte) - Apple Silicon, ARM Linux
- Change the tag in
lib/patches/<lib-name>/apply.sh - Run
make clean && make patch - Fix any patch conflicts