docs.rs failed to build simconnect-0.3.2
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.
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.
SimConnect Bindings for Rust
Requirements
- CLang (See the Rust Bindgen Documentation)
- MSVC x64 Rust build (
x86_64-pc-windows-msvc, see The rustup book)
Using
Add this to your Cargo.toml
[]
= "0.3.2"
Building
The SimConnect binaries are included within this repository, but they may not be up-to-date.
- run
cargo build - Add
use simconnectat 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.