Skip to main content

The Cargo Toolchain

TeaQL utilizes a custom Cargo CLI tool, cargo-teaql, to generate Rust structs and APIs from your KSML models.

Installation

cargo install cargo-teaql

Usage

Run the generator in the root of your workspace:

cargo teaql generate

This will read your .ksml files and output strongly-typed Rust code.

Dependencies

When using cargo-teaql to generate code, ensure your generated crates reference the correct versions of the TeaQL Rust ecosystem.

For the current model generation, you should use:

  • teaql-core: 3.1.0
  • teaql-tool-core: 1.0.0