msfs/
lib.rs

1//! # msfs-rs
2//!
3//! These bindings include:
4//!
5//! - MSFS Gauge API
6//! - SimConnect API
7//! - NanoVG API
8//! - Networking API
9//! - Communication Bus API
10//!
11//! ## Building
12//!
13//! Tools such as `cargo-wasi` may not work. When in doubt, try invoking
14//! `cargo build --target wasm32-wasi` directly.
15//!
16//! If your MSFS SDK is not installed to `C:\MSFS SDK` you will need to set the
17//! `MSFS_SDK` env variable to the correct path.
18//!
19//! ## Known Issues and Work-Arounds
20//!
21//! ### Missing various exports
22//! Add a local `.cargo/config.toml` file with the following settings:
23//! ```toml
24//! [target.wasm32-wasi]
25//! rustflags = [
26//!   "-Clink-arg=--export-table",
27//!   "-Clink-arg=--export=malloc",
28//!   "-Clink-arg=--export=free",
29//! ]
30//! ```
31
32mod msfs;
33pub mod sim_connect;
34pub mod sys;
35
36pub use msfs::*;
37
38#[cfg(any(target_arch = "wasm32", doc))]
39pub mod legacy;
40
41#[cfg(any(target_arch = "wasm32", doc))]
42pub mod nvg;
43
44#[cfg(any(target_arch = "wasm32", doc))]
45pub mod network;
46
47#[cfg(any(target_arch = "wasm32", doc))]
48pub mod commbus;
49
50#[doc(hidden)]
51pub mod executor;