DEV Community

Rust and WebAssembly for masses - Introduction

Sendil Kumar on January 01, 2020

Rust The Rust language is designed to guide you naturally towards reliable goal that is efficient in terms of speed and memory usage -...
Collapse
 
nickytonline profile image
Nick Taylor

Nice intro to getting started Sendil. I’m still looking to learn rust/WASM.

So when using the #[no_mangle] decorator, it should only be for the public API right? I guess there is no way for rust to know what is public or private, or is that notion just completely removed from the rust language?

Collapse
 
sendilkumarn profile image
Sendil Kumar

Yeah #[no_mangle] is for public.

Everything by default in Rust is private you can use pub to make something public.

Collapse
 
dhorse1 profile image
David G. Horsman

Yes I am quite excited about this Mr. Kumar. This is my selected platform going forward. With speed, lo level functionality, cross platform support and libraries being main requirements it was an easy decision.
Given I am stalled for the moment regardless, I am now just waiting for all you awesome folks to do my work for me.
Do carry on!

Collapse
 
lencx profile image
lencx

Thanks for the post.
Recommend a wasm-pack based vite plugin:
vite-plugin-rsw