[Solved] Is there a way to use rust functions in html button? [closed]


No, directly, you can’t.
When a function is called from an HTML page, it’s runned by the client’s browser.

A modern browser can only run javascript and webassembly.

In case you don’t know, webassembly is a low level, assembly like language that your browser can run.

Rust projects can be compiled into webassembly and used from a webpage. It’s not always easy to compile an existing project into webassembly, since some operations aren’t permitted. You can learn more about it here.

solved Is there a way to use rust functions in html button? [closed]