#bindings #sdk #gauge #sim-connect #nano-vg #msfs-rs

msfs

Rust bindings for the MSFS SDK

4 releases

0.1.0 Oct 20, 2021
0.0.1-alpha.2 Dec 20, 2020
0.0.1-alpha.0 Dec 11, 2020
0.0.0-pre.1 Oct 9, 2020

#1449 in Math

MIT license

54KB
1.5K SLoC

msfs-rs

These bindings include:

  • MSFS Gauge API
  • SimConnect API
  • NanoVG API

Building

Tools such as cargo-wasi may not work. When in doubt, try invoking cargo build --target wasm32-wasi directly.

If your MSFS SDK is not installed to C:\MSFS SDK you will need to set the MSFS_SDK env variable to the correct path.

Known Issues and Work-Arounds

Missing various exports

Add a local .cargo/config.toml file with the following settings:

[target.wasm32-wasi]
rustflags = [
  "-Clink-arg=--export-table",
  "-Clink-arg=--export=malloc",
  "-Clink-arg=--export=free",
]

Dependencies

~1.8–4MB
~87K SLoC