Rewrite Rust components in C (yes, seriously.)

(#996) Feature Declined meta performance

Thread

Comment by @oax90
RexSystem 1 vote originally by @oax90 on GitHub 1 reply
Right now in the refactor branch Rust is used only in the client for a simple purpose. Is there really a need to keep dependency on Rust for that? I rather keep it full TS or use Go or C.
pub use animation::is_animated_image;
pub use apng::crop_and_rotate_apng;
pub use gateway::decompress_zstd_frame;
pub use gif::crop_and_rotate_gif;
pub use static_image::crop_and_rotate_image;
Comment by @Speykious
RexSystem 1 vote originally by @Speykious on GitHub
No, I'm not kidding. Rust is by far the best language when it comes to targeting WASM. It is extremely straightforward to just make something compile to WASM in Rust. The same cannot be said about C which doesn't even have a package manager or standard build system. You can get away with a lot by doing unity builds of course, and it probably wouldn't even be that bad if set up correctly, but let's not pretend it's better than Rust for the task.