Well, you'll have to use some kind of JavaScript runtime. It may be Node.js, or Firefox's internal engine, or, for example, deno. I'm not sure whether there is something easily embeddable, however.
The pedantically correct, but useless, answer to this is yes. One of the fundamental discoveries of computer science is that essentially all programming languages are equally powerful: Any programming language can be used to write an interpreter for any other; JavaScript and Rust are both programming languages, therefore there is a way.
Whether or not it's easy is a separate question entirely.