mun-lang / mun

Source code for the Mun language and runtime.
https://mun-lang.org
Other
1.81k stars 72 forks source link

Can I call rust code in .mun? #540

Closed zhangtianhao1230 closed 7 months ago

zhangtianhao1230 commented 7 months ago

Can I call rust code in .mun? For example, call a public function in .rs. If so, please give an example. If not, are there any plans to support it?

Wodann commented 7 months ago

You can call Rust functions that use the C ABI from Mun, as described in these docs.