# Calling Elixir in Rust?

**URL:** <https://forum.elixirforum.com/t/calling-elixir-in-rust/40121>\
**Category:** Questions\
**Tags:** rust, rustler\
**Created:** [May 31, 2021, 3:20am UTC](https://forum.elixirforum.com/t/calling-elixir-in-rust/40121 "2021-05-31T03:20:29Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ityonemo](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ityonemo/32/11341_2.png) [@ityonemo](https://forum.elixirforum.com/u/ityonemo)\
**Post date:** [June 1, 2021, 4:08am UTC](https://forum.elixirforum.com/t/calling-elixir-in-rust/40121/9 "2021-06-01T04:08:13Z")

</div>

Wow that’s super impressive. It’s giving me ideas though, I think there might be a clever and safe way of doing this in zigler by yielding first, and storing the frame, then resuming once the result term has come back. If the owning process is killed, the resource can be freed and the yield will exit, triggering cleanup of allocated memory, etc.

---

_[View the full topic](https://forum.elixirforum.com/t/calling-elixir-in-rust/40121)._
