Sorry if this is painfully obvious to everyone but me - could the examples and/or readme be extended to show how to implement this crate in your own project?
Something like:
Usage
cargo new --lib my-rxplm-project
cd my-rxplm-project
cargo add xplm
Then add to Cargo.toml:
[lib]
crate-type = ["cdylib"]
Copy minimal example into src/lib.rs
cargo build
Rename target/debug/my_rxplm_project.dll to win.xpl (or my_rxplm_project.so to lin.xpl, etc) and copy to the aircraft/scenery/sim plugins folder etc
Also might be worth mentioning the ease of cross-compilation e.g. with cross? I don't know if C++ has moved on a lot from when I last leaned into it, but it's hard to beat 1) install Podman (on a linux machine) 2) install cross 3) cross build --target x86_64-pc-windows-gnu 4) package and distribute the .dll :D
Sorry if this is painfully obvious to everyone but me - could the examples and/or readme be extended to show how to implement this crate in your own project?
Something like:
Also might be worth mentioning the ease of cross-compilation e.g. with cross? I don't know if C++ has moved on a lot from when I last leaned into it, but it's hard to beat 1) install Podman (on a linux machine) 2) install
cross
3)cross build --target x86_64-pc-windows-gnu
4) package and distribute the .dll :D