Rust configuration
You can customize the behavior of the Rust SDK generator in generators.yml:
clientClassName
The name of the generated client struct. This allows you to customize the struct name that users will instantiate when using your SDK.
crateName
The name of the generated Rust crate. This is used in Cargo.toml and determines how users will add your SDK as a dependency.
crateVersion
The version of the generated crate. This is used in Cargo.toml for publishing to crates.io.
environmentEnumName
The name of the generated environment enum. This allows you to customize the enum name that defines your API environments (such as production, staging, development).
enableWireTests
When enabled, generates mock server (wire) tests to verify that the SDK sends the correct HTTP requests and correctly handles responses per the API spec.
generateExamples
When enabled, generates code examples in the README and reference documentation.
Package metadata
Configure metadata for publishing to crates.io:
packageDescription
A description of the crate for crates.io. This appears in the crate’s metadata and search results.
packageLicense
The license identifier for the crate (e.g., “MIT”, “Apache-2.0”).
packageRepository
The URL of the crate’s source repository.
packageDocumentation
The URL of the crate’s documentation.
Dependencies
Add custom dependencies to your generated SDK:
extraDependencies
Additional dependencies to include in the generated Cargo.toml. Specify as a map of crate names to version requirements.
extraDevDependencies
Additional dev dependencies to include in the generated Cargo.toml. These are only used during development and testing.