msfs 0.1.0

Rust bindings for the MSFS SDK
docs.rs failed to build msfs-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

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",
]