Sequal32 / simconnect-rust

SimConnect bindings for rust.
MIT License
32 stars 13 forks source link

Move sample code to example directory #9

Closed MrMinimal closed 8 months ago

MrMinimal commented 9 months ago

For convenience I have moved the sample code to an actual example. It can be run using a built-in cargo command, which I have added to the README.

These lines of the example don't compile with the latest simconnect version anymore and are therefore commented out: https://github.com/MrMinimal/simconnect-rust/blob/ebef846aa453c5daa6821742fa56084818ad5c6f/examples/connection/main.rs#L54

Edits welcome 😊

BitsAndDroids commented 8 months ago

I've opened a pr as well that required an extra example. I've incorporated your suggestion but also fixed the broken example. (if this repo is still maintained that is) https://github.com/Sequal32/simconnect-rust/pull/10

MrMinimal commented 8 months ago

@BitsAndDroids Thank you so much, I had a look at your PR and it should greatly improve the usability of this library.

Sequal32 commented 8 months ago

Sorry just got around to looking at this now, and thanks for your contribution! I'll close this in favor of @BitsAndDroids 's PR #10.

MrMinimal commented 8 months ago

@Sequal32 Cheers and happy holidays, really appreciate your project!