# Does exist plan to add Rust to native extention?

**URL:** <https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445>\
**Category:** Questions\
**Created:** [March 29, 2024, 8:37am UTC](https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445 "2024-03-29T08:37:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![errorstrike](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/errorstrike/32/35094_2.png) [@errorstrike](https://forum.defold.com/u/errorstrike)\
**Post date:** [March 29, 2024, 8:37am UTC](https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445/1 "2024-03-29T08:37:18Z")

</div>

Hello there. I am not professional programmer. I am hobbyist. I like that Defold is trully crossplatform. So I plan to learn and use Defold only.  
But I know about a lot of useful features of Rust programming language like as borrow checker (memory safety), functional programming etc. Rust is more easy and safe than C++, more fast than Java and JavaScript.  
“If you need custom interaction with external software or hardware on a low level where Lua won’t suffice, the Defold SDK allows you to write extensions to the engine in C, C++, Objective C, Java or Javascript, depending on target platform.”  
Can I expect in 2024 or 2025 Rust support in Defold?

---

<div class="post-metadata">

**Author:** ![selimanac](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/selimanac/32/6397_2.png) [@selimanac](https://forum.defold.com/u/selimanac)\
**Post date:** [March 29, 2024, 10:16am UTC](https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445/2 "2024-03-29T10:16:42Z")

</div>

> [@Will Defold support an official alternative language like Godot does?](https://forum.defold.com/t/will-defold-support-an-official-alternative-language-like-godot-does/76441/2):
>
> Hi @Qws! What we’re currently working on is support for creating a game in full C++ (for some studios that are more comfortable with that). In line with that we’re also looking into supporting C#. Both are a slightly longer task, and it’s about both restructuring some of our internals functions, to make them “cleaner”, and also make them more useful from a scripting perspective. This api cleanup, would essentially allow you to create your own scripting layer if you wanted to. These efforts a…

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [March 29, 2024, 10:28am UTC](https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445/3 "2024-03-29T10:28:25Z")

</div>

It’s not something we have planned.  
Perhaps in the future we might add it.

We are currently working on updating our sdk (for several reasons), and that will allow us to finish our experimental Zig support for extensions.

---

<div class="post-metadata">

**Author:** ![errorstrike](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/errorstrike/32/35094_2.png) [@errorstrike](https://forum.defold.com/u/errorstrike)\
**Post date:** [March 29, 2024, 10:34am UTC](https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445/4 "2024-03-29T10:34:38Z")

</div>

Wow! I did listen about Zig, but didn’t try it. Bloggers say that Zig is better alternative for C. Thanks!

---

<div class="post-metadata">

**Author:** ![Chung\_Xa](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/chung_xa/32/34470_2.png) [@Chung\_Xa](https://forum.defold.com/u/Chung_Xa)\
**Post date:** [March 30, 2024, 11:15am UTC](https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445/5 "2024-03-30T11:15:43Z")

</div>

Kotlin & Swift are also reasonable to be added 😃

---

<div class="post-metadata">

**Author:** ![jhonny.goransson](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jhonny.goransson/32/3864_2.png) [@jhonny.goransson](https://forum.defold.com/u/jhonny.goransson)\
**Post date:** [March 30, 2024, 11:18am UTC](https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445/6 "2024-03-30T11:18:00Z")

</div>

We will not add support for those, but hopefully a community extension can be built on top of our new api

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [March 30, 2024, 11:32am UTC](https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445/7 "2024-03-30T11:32:39Z")

</div>

Totally this. The maintenance cost of adding several new languages will be huge and nothing we have the capacity to support. The purpose behind an extended and well designed public C++ SDK and C# as a new extension language is that others can add support for and maintain new languages.

---

<div class="post-metadata">

**Author:** ![Chung\_Xa](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/chung_xa/32/34470_2.png) [@Chung\_Xa](https://forum.defold.com/u/Chung_Xa)\
**Post date:** [March 30, 2024, 4:32pm UTC](https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445/8 "2024-03-30T16:32:50Z")

</div>

Is there a way to support a new language via extension? Could you give a clue? I’m curious

---

<div class="post-metadata">

**Author:** ![jhonny.goransson](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jhonny.goransson/32/3864_2.png) [@jhonny.goransson](https://forum.defold.com/u/jhonny.goransson)\
**Post date:** [March 30, 2024, 4:50pm UTC](https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445/9 "2024-03-30T16:50:26Z")

</div>

No not yet, we are working on the api currently, so it’s not possible yet

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [March 30, 2024, 5:52pm UTC](https://forum.defold.com/t/does-exist-plan-to-add-rust-to-native-extention/76445/10 "2024-03-30T17:52:32Z")

</div>

If you can compile your code offline, into a .a/.lib file for the platforms you want to support, you can support other languages already. Put your library files in the `my_extension/lib/<platform>/` folder, and it will be linked with the engine.
