15 releases

0.1.4 Feb 22, 2024
0.1.3 Feb 18, 2024
0.1.2 Jan 23, 2024
0.0.10 Jan 3, 2024
0.0.2 Sep 27, 2023

#536 in Game dev

41 downloads per month

MIT license

250KB
7K SLoC

Rust Binding to DCS's Lua api

This is a minimal binding to the DCS lua api. With it, mission scripting can be done almost entirely in Rust. To use it, you build your rust library as a cdylib and load the dll using lua into one or both of the DCS lua environments using the normal lua require statement (see the mlua docs about module mode for more details on that). When building you should make sure to instruct mlua to link to the same lua dll that DCS is linking (for obvious reasons), you can do that by setting some environment variables.

It's intended to be as close to a direct translation of the api as possible, while adding safety features only possible with rust, as such it does not force you into IPC, or async, you can choose what works best for your project.

At this time, this api is VERY experimental, expect it to evolve and break a lot.

No one should have to maintain a large project in lua unless they want to :-) civil engineers don't build bridges out of glue, and neither should you.

Dependencies

~7MB
~140K SLoC