// This helps use auto generate libraries you can use in the language of
// your choice. You can have multiple generators if you use multiple languages.
// Just ensure that the output_dir is different for each generator.
generator target {
// Valid values: "python/pydantic", "typescript", "go", "rust", "ruby/sorbet", "rest/openapi"
output_type "rust"
// Where the generated code will be saved (relative to baml_src/)
output_dir "../src"
// The version of the BAML package you have installed (e.g. same version as your baml-py or @boundaryml/baml).
// The BAML VSCode extension version should also match this version.
version "0.221.0"
// Valid values: "sync", "async"
// This controls what `b.FunctionName()` will be (sync or async).
default_client_mode async
// Keep generated Rust compatible with the repository format gate.
on_generate "cargo fmt --all"
}