singularity-forge/native/crates
Lex Christopherson 75fe5d3319 feat: add native image module — decode, encode, and resize via Rust image crate
Port image processing from Oh My Pi's pi-natives crate, adapted for napi-rs v2.
Exposes NativeImage class with async parse/encode/resize methods backed by the
Rust `image` crate (PNG, JPEG, WebP, GIF support).

Includes:
- task.rs: lightweight async task scheduling for libuv thread pool
- image.rs: NativeImage class with SamplingFilter enum
- TypeScript types and wrapper (parseImage, ImageFormat, SamplingFilter)
- 8 passing tests covering decode, encode, resize, round-trip, error cases

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 12:51:49 -06:00
..
ast feat: add native ast module — AST-aware structural search and rewrite via ast-grep 2026-03-13 12:47:27 -06:00
engine feat: add native image module — decode, encode, and resize via Rust image crate 2026-03-13 12:51:49 -06:00
grep feat: Rust native engine scaffold with grep module 2026-03-13 12:21:09 -06:00