๐ฃ Sushi RS: SVG Sushi Components for Rust Frontends.
Sup Guys ๐! I am back! It has been a long time no see! So I came across the Frontend Challenge: Comfort Food Edition on dev.to , and I thought: "Hey, what if I build a Rust crate that lets you render SVG sushi directly in your WASM frontend? How hard can it be?" (Famous last words. The borrow checker immediately disagreed.) But spoiler: we made it . And so, Sushi RS was born. ๐ฃ Why Sushi,โฆ
Sushi RS is a Rust crate that enables rendering SVG sushi components directly in WASM frontends. It was created to address the Frontend Challenge: Comfort Food Edition on dev.to. The library is cross-framework, supporting Yew, Turbo, and Leptos. It allows rendering detailed, accessible sushi SVGs with a single component, featuring salmon gradients, nori weave patterns, red caviar rim decorations, and rice grain textures.
The main motivation behind Sushi RS is to promote open discussions about mental health, particularly the concept of "sushicide," a metaphor for the struggles faced by developers in the software engineering field. The library utilizes a framework-agnostic SVG string engine, with each shape renderer returning a plain String of SVG markup.
This shared SushiData struct drives the rendering process, encompassing various properties such as shape, state, view, ingredients, outer sheet, size, rice color, top edge decoration, and description.
Written by urgent.news from Dev.to's reporting โ not their text. Machine-written โ may contain errors; check the original before relying on it.