X-Plane Web APIs
Typed Rust access to the documented X-Plane local web APIs.
Contents
- REST client generated at build time from
openapi/xplane-web-api-v3.yamlusing Progenitor. - Shared REST error classification (
xplane_web_api::error::RestClientError). - Optional
xplane-web-apiCLI for REST operations. - Optional typed WebSocket request/response models and an async convenience client.
Features
- Default features: none (REST only).
cli: enables thexplane-web-apicommand-line tool.websocket: enables typed websocket models + async websocket client.
Run the CLI:
CLI logging uses env_logger; control verbosity with RUST_LOG:
RUST_LOG=debug
Enable websocket support as a library dependency:
Source docs
The API model in this crate is based on: