8 releases

0.3.2 Jul 11, 2024
0.3.0 Dec 27, 2023
0.2.0 May 9, 2023
0.1.4 Jan 19, 2021
0.1.0 Aug 26, 2020

#52 in Simulation

Download history 67/week @ 2024-07-23 10/week @ 2024-09-10 6/week @ 2024-09-17 22/week @ 2024-09-24 47/week @ 2024-10-01 1/week @ 2024-10-08

437 downloads per month
Used in buster

MIT license

140KB
995 lines

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

crates.io

SimConnect Bindings for Rust

Requirements

Using

Add this to your Cargo.toml

[dependencies]
simconnect = "0.3.2"

Building

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

  1. run cargo build
  2. 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 )

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.9MB
~37K SLoC