7 releases

0.3.0 Dec 27, 2023
0.2.0 May 9, 2023
0.1.4 Jan 19, 2021
0.1.3 Sep 28, 2020
0.1.0 Aug 26, 2020

#81 in Simulation

Download history 9/week @ 2023-12-25 9/week @ 2024-02-19 19/week @ 2024-02-26 45/week @ 2024-03-11 81/week @ 2024-04-01

126 downloads per month
Used in buster

MIT license

130KB
993 lines

Contains (Windows DLL, 59KB) SimConnect.dll, (static library, 22KB) libsrc/lib/SimConnect.lib

SimConnect Bindings for Rust

Using

Add this to your Cargo.toml

[dependencies]
simconnect = "0.2.1"

Building

The SimConnect binaries are included within this repository, but they may not be up-to-date.

  1. Install CLang. More information available at the Rust Bindgen Documentation.
  2. run cargo build
  3. Add use simconnect at the top of your file

Example

Read float position data

cargo run --example aircraft_updates

Requests tagged data with thresholds from SimConnect and reads floats/strings

cargo run --example aircraft_updates_on_change

You must have SimConnect.dll in the same directory as the compiled exe for it to run (e.g. in )

Building

The SimConnect.dll is included in this repository, but might not be up-to-date

Remarks

I have not tested every single function from the api. If you find an error, feel free to make an issue or a pull request.

No runtime deps

~0–1.8MB
~36K SLoC