AsyncAPI Rust WebSocket Template is an npm package used as a template for the AsyncAPI Generator to produce a Rust WebSocket client crate. As of version 0.3.2, it targets AsyncAPI v3 documents and generates client code using tokio-tungstenite or async-tungstenite frameworks. It processes spec components (info, servers, channels, messages) to produce a Rust project with Cargo.toml, lib.rs, client modules, and model definitions. Released on GitHub, it is a community-maintained tool for generating Rust WebSocket clients from AsyncAPI specs. Differentiators include direct integration with the AsyncAPI Generator ecosystem and support for multiple Rust async frameworks.
npm install asyncapi-rust-ws-templateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows two ways to use the template: CLI via asyncapi-generator, and programmatic usage with TypeScript.
Convert your AsyncAPI document to v3 format before using this template.
Always provide the `exchange` parameter via -p exchange=EXCHANGE_NAME.
Use `-p validate=true` (string) instead of `-p validate` (boolean flag).
Use only supported framework values: 'tokio-tungstenite' or 'async-tungstenite'.
Run `npm install -g asyncapi-rust-ws-template` or install locally in the same directory.
Use 'tokio-tungstenite' or 'async-tungstenite' for the framework parameter.
Add `-p exchange=YOUR_EXCHANGE_NAME` to the asyncapi generate command.
No dependency data recorded yet.