18 releases

0.1.7 Sep 27, 2024
0.1.5 May 5, 2024
0.1.4 Feb 22, 2024
0.0.9 Dec 22, 2023
0.0.4 Nov 2, 2023

#509 in Game dev

MIT license

260KB
7.5K 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

~9MB
~166K SLoC