All Projects → testdouble → rust-ffi-example

testdouble / rust-ffi-example

Licence: other
An example project that shows how to use FFI between Rust and Unity.

Programming Languages

rust
11053 projects
C#
18002 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Rust FFI Example

An example project that shows the use of Rust's FFI capabilities to handle memory- or performance-senstivie work in Rust while the remainder of the application is written in Unity.

This initial version uses Rust to manage a simple-as-it-gets UDP protocol between a Unity app with a desk bell and a Node server listening for when that bell rings.

Over time, this project can grow to show more available features of both Rust and FFI:

  • Custom network protocols in Rust.
  • Reading complex data structures into C# from Rust.
  • A working game, perhaps?

What's with the desk bell?

It's from a game called Pit.

Attributions

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].