Improve the examples

This commit is contained in:
Mihai Dinculescu
2022-10-12 23:27:19 +01:00
parent 9b7e3b97db
commit 307b83ea95
11 changed files with 367 additions and 100 deletions

32
examples/README.md Normal file
View File

@@ -0,0 +1,32 @@
# SimConnect SDK Examples
## Checkout the repository
```bash
git clone git@github.com:mihai-dinculescu/simconnect-sdk.git
cd simconnect-sdk
```
## Receiving data
```bash
cargo run --bin basic
```
## Using tracing
```bash
RUST_LOG=info cargo run --bin basic_with_tracing
```
## Receiving data without the derive macro
```bash
cargo run --bin basic_without_macro
```
## Multiple objects
```bash
cargo run --bin multiple_objects
```