dcso3

Crates.iodcso3
lib.rsdcso3
version0.1.5
sourcesrc
created_at2023-09-27 19:31:12.528579
updated_at2024-05-05 22:41:52.540758
descriptionMinimal Rust binding to the DCS lua api
homepagehttps://github.com/estokes/bfnext
repositoryhttps://github.com/estokes/bfnext
max_upload_size
id985114
size257,752
Eric Stokes (estokes)

documentation

https://docs.rs/dcso3

README

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.

Commit count: 181

cargo fmt