#bindings #simulator #microsoft #flight #sim-connect #link #static-link

sys sim_connect_sys

Rust bindings for SimConnect for use with Microsoft Flight Simulator

2 unstable releases

0.2.0 Apr 17, 2023
0.1.0 Apr 17, 2023

#34 in #flight

28 downloads per month
Used in 2 crates

MIT license

4KB

sim_connect_sys

A package which generates Rust bindings for SimConnect (for use with Microsoft Flight Simulator)

Installation

  • Install the SimConnect sdk
    • Open MSFS
    • Enable develop mode in Options/General Options/Developers
    • Click "Help" on the top menu bar
    • Click SDK Installer (Core)
  • If installed to default location of C:\MSFS SDK\, then you may stop here
  • Add an environment variable to cargo.toml in the [env] section as follows:
[env]
SIMCONNECT_SDK = "path/to/sdk/lib"
  • The path MUST contain both SimConnect.dll AND SimConnect.lib. This is usually in ...\MSFS SDK\SimConnect SDK\lib

Features

  • static_link - This will tell the compiler to staticly link SimConnect instead of requiring a .dll dependency

Dependencies

~0–1.8MB
~37K SLoC